core-agent-linux/misc/qubes-serial-login
2017-09-30 05:05:34 +02:00

8 righe
119 B
Bash
Executable File

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