2018-02-09 00:53:03 +00:00
|
|
|
#!/bin/sh
|
2019-03-20 23:28:02 +00:00
|
|
|
port=tty1
|
|
|
|
if [ -n "$1" ]; then
|
|
|
|
port=$1
|
|
|
|
fi
|
2018-02-09 00:53:03 +00:00
|
|
|
/bin/dmesg -n 1
|
2019-03-20 23:28:02 +00:00
|
|
|
if [ "$port" = "tty1" ]; then
|
2021-07-13 22:14:31 +00:00
|
|
|
$SNAP/bin/subiquity-loadkeys
|
2019-03-20 23:28:02 +00:00
|
|
|
setfont $SNAP/subiquity.psf
|
|
|
|
exec /sbin/agetty -n --noclear -l $SNAP/usr/bin/python3 -o $SNAP/usr/bin/subiquity $port $TERM
|
|
|
|
else
|
|
|
|
exec /sbin/agetty -n --keep-baud -l $SNAP/usr/bin/python3 -o "$SNAP/usr/bin/subiquity --serial" $port 115200,38400,9600 $TERM
|
|
|
|
fi
|