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

8 rindas
119 B
Bash
Izpildāmais fails

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