core-agent-linux/misc/qubes-serial-login

8 lines
119 B
Plaintext
Raw Normal View History

#!/bin/sh
if /bin/ls -l /proc/self/fd/0 | grep -q /dev/hvc0 ; then
exec su - "$2"
exit
else
exec /bin/login "$@"
fi