Initial checkin
[live-initramfs-grml.git] / bin / live-getty
1 #!/bin/sh
2
3 set -e
4
5 AUTOLOGIN="1"
6
7 for ARGUMENT in "${@}"
8 do
9         if [ "${ARGUMENT}" = "-l" ] || [ "${ARGUMENT}" = "-n" ]
10         then
11                 AUTOLOGIN="0"
12         fi
13 done
14
15 if [ "${AUTOLOGIN}" = "1" ]
16 then
17         exec /sbin/getty -n -l /sbin/live-login ${*}
18 else
19         exec /sbin/getty ${*}
20 fi