Merge "contrib: Let safe_asterisk script continue without /dev/tty9." into 14

changes/94/3894/1
Joshua Colp 9 years ago committed by Gerrit Code Review
commit 44644c8563

@ -120,15 +120,22 @@ if test -n "$TTY" && test "$TTY" != "no"; then
TTY=tty${TTY} TTY=tty${TTY}
elif test -c /dev/vc/${TTY}; then elif test -c /dev/vc/${TTY}; then
TTY=vc/${TTY} TTY=vc/${TTY}
elif test "$TTY" = "9"; then # ignore default if it was untouched
# If there is no /dev/tty9 and not /dev/vc/9 we don't
# necessarily want to die at this point. Pretend that
# TTY wasn't set.
TTY=
else else
message "Cannot find specified TTY (${TTY})" message "Cannot find specified TTY (${TTY})"
exit 1 exit 1
fi fi
if test -n "$TTY"; then
ASTARGS="${ASTARGS} -vvvg" ASTARGS="${ASTARGS} -vvvg"
if test "$CONSOLE" != "no"; then if test "$CONSOLE" != "no"; then
ASTARGS="${ASTARGS} -c" ASTARGS="${ASTARGS} -c"
fi fi
fi fi
fi
if test ! -d "${RUNDIR}"; then if test ! -d "${RUNDIR}"; then
message "${RUNDIR} does not exist, creating" message "${RUNDIR} does not exist, creating"

Loading…
Cancel
Save