Fix missing test command
This commit is contained in:
parent
cb729afd85
commit
7026ad29d2
|
@ -13,12 +13,12 @@ fi
|
||||||
echo
|
echo
|
||||||
active_ttys=( $( w | grep "^root" | awk '{ print $2 }' ) )
|
active_ttys=( $( w | grep "^root" | awk '{ print $2 }' ) )
|
||||||
echo "Active TTYs: ${active_ttys[@]}"
|
echo "Active TTYs: ${active_ttys[@]}"
|
||||||
this_tty=$( tty | sed -e "s/.*tty\(.*\)/\1/" )
|
this_tty=$( tty | sed -e "s:/dev/::" )
|
||||||
echo "This TTY: ${this_tty}"
|
echo "This TTY: ${this_tty}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [[ ${#active_ttys} -gt 1 ]]; then
|
if [[ ${#active_ttys} -gt 1 ]]; then
|
||||||
if "${active_ttys[@]}" =~ "ttyS" ]]; then
|
if [[ "${active_ttys[@]}" =~ "ttyS" ]]; then
|
||||||
if [[ "${this_tty}" =~ "tty[0-9]+" ]]; then
|
if [[ "${this_tty}" =~ "tty[0-9]+" ]]; then
|
||||||
echo "Found more than one TTY and at least one serial TTY!"
|
echo "Found more than one TTY and at least one serial TTY!"
|
||||||
echo -n "If you wish to run the installer on this graphical TTY instead of the serial TTY, press enter within 15 seconds... "
|
echo -n "If you wish to run the installer on this graphical TTY instead of the serial TTY, press enter within 15 seconds... "
|
||||||
|
|
Loading…
Reference in New Issue