mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Catch up with UNIX98-style PTY's.
This commit is contained in:
parent
41f83263a5
commit
adcda09cbc
2 changed files with 8 additions and 2 deletions
|
|
@ -11,7 +11,10 @@ if [ "$tty" = "??" ]; then
|
|||
tty="-"
|
||||
ttyshort="-"
|
||||
else
|
||||
ttyshort=`echo $tty | cut -c 4-`
|
||||
case $tty in
|
||||
pts/*) ttyshort=`echo $tty | cut -c 5-` ;;
|
||||
*) ttyshort=`echo $tty | cut -c 4-` ;;
|
||||
esac
|
||||
fi
|
||||
sleep=`mktemp /tmp/$base.XXXXXX` || exit 1
|
||||
ln -sf /bin/sleep $sleep
|
||||
|
|
|
|||
|
|
@ -11,7 +11,10 @@ if [ "$tty" = "??" ]; then
|
|||
tty="-"
|
||||
ttyshort="-"
|
||||
else
|
||||
ttyshort=`echo $tty | cut -c 4-`
|
||||
case $tty in
|
||||
pts/*) ttyshort=`echo $tty | cut -c 5-` ;;
|
||||
*) ttyshort=`echo $tty | cut -c 4-` ;;
|
||||
esac
|
||||
fi
|
||||
sleep=`mktemp /tmp/$base.XXXXXX` || exit 1
|
||||
ln -sf /bin/sleep $sleep
|
||||
|
|
|
|||
Loading…
Reference in a new issue