sx: fgconsole is no longer needed

This commit is contained in:
Earnestly 2017-12-05 10:04:27 +00:00
parent 64038adef2
commit 39702615b7
1 changed files with 2 additions and 2 deletions

4
sx
View File

@ -1,7 +1,7 @@
#!/bin/sh -- #!/bin/sh --
# sx - start an xserver # sx - start an xserver
# requires fgconsole stty timeout xauth Xorg # requires timeout tail xauth Xorg
# I'm willing to take advantage of errexit for this script as roughly 85% of # I'm willing to take advantage of errexit for this script as roughly 85% of
# the error checking would just be exiting on command failure. # the error checking would just be exiting on command failure.
@ -56,7 +56,7 @@ xauth add :"$tty" MIT-MAGIC-COOKIE-1 "$(mcookie)"
# We take advantage of this feature to launch our client directly from the # We take advantage of this feature to launch our client directly from the
# SIGUSR1 handler and avoid the need to poll for readiness. # SIGUSR1 handler and avoid the need to poll for readiness.
trap 'DISPLAY=:$tty "${@:-"$cfgdir"/sxrc}"' USR1 trap 'DISPLAY=:$tty "${@:-$cfgdir/sxrc}"' USR1
( (
trap '' USR1 trap '' USR1
exec /usr/lib/xorg-server/Xorg :"$tty" -keeptty vt"$tty" -noreset -auth "$XAUTHORITY" exec /usr/lib/xorg-server/Xorg :"$tty" -keeptty vt"$tty" -noreset -auth "$XAUTHORITY"