autoinst

scripts to make installation of custom debian easier and more automated
git clone git://deadbeef.fr/autoinst.git
Log | Files | Refs | README | LICENSE

commit 43771f8d6a8b2a6f7c90d78457f12369e44d75f6
parent 5a54d7378be83eace4d27ed2b2b31cfe6ecd1593
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Sun, 15 Nov 2020 19:35:46 +0100

use a complete path for test -c /dev/$TTY

Diffstat:
Mtemplates/generic/root/etc/service/bbgetty-tty1/run | 2+-
Mtemplates/generic/root/etc/sv/bb-getty/run | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/generic/root/etc/service/bbgetty-tty1/run b/templates/generic/root/etc/service/bbgetty-tty1/run @@ -5,7 +5,7 @@ TTY="$(echo ${SVNAME} | cut -f2 -d-)" test -n "$TTY" || badconf "Unable to retrieve TTY name from \"$SVNAME\"" -test -c "$TTY" || badconf "$TTY is not a character special file" +test -c "/dev/$TTY" || badconf "$TTY is not a character special file" CONF="$(grep "^$TTY" /etc/bb.conf.d/getty)" BAUDRATE="$(echo $CONF | cut -d: -f2)" diff --git a/templates/generic/root/etc/sv/bb-getty/run b/templates/generic/root/etc/sv/bb-getty/run @@ -5,7 +5,7 @@ TTY="$(echo ${SVNAME} | cut -f2 -d-)" test -n "$TTY" || badconf "Unable to retrieve TTY name from \"$SVNAME\"" -test -c "$TTY" || badconf "$TTY is not a character special file" +test -c "/dev/$TTY" || badconf "$TTY is not a character special file" CONF="$(grep "^$TTY" /etc/bb.conf.d/getty)" BAUDRATE="$(echo $CONF | cut -d: -f2)"