qubes_serial_login 117 B

1234567
  1. #!/bin/sh
  2. if /bin/ls -l /proc/self/fd/0 | grep -q /dev/hvc0 ; then
  3. exec su - $2
  4. exit
  5. else
  6. exec /bin/login "$@"
  7. fi