installer: also match qemu and serial consoles for prompting qrcode
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
};
|
};
|
||||||
services.getty.autologinUser = lib.mkForce "root";
|
services.getty.autologinUser = lib.mkForce "root";
|
||||||
programs.bash.interactiveShellInit = ''
|
programs.bash.interactiveShellInit = ''
|
||||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
if [[ "$(tty)" =~ /dev/(tty1|hvc0|ttyS0)$ ]]; then
|
||||||
echo -n 'waiting for tor to generate the hidden service'
|
echo -n 'waiting for tor to generate the hidden service'
|
||||||
until test -e /var/shared/qrcode.utf8; do echo -n .; sleep 1; done
|
until test -e /var/shared/qrcode.utf8; do echo -n .; sleep 1; done
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user