summaryrefslogtreecommitdiff
path: root/bin/live-getty
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 14:46:36 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:25:50 +0100
commit9fc9e2a1a11b0edada38cb501fefe4f58aa414ac (patch)
tree7d2d89ecfbd394b41854937ec2342bc7ae530cf5 /bin/live-getty
parent4bdaa2237c6ae923d1dd068e9024ebceca3f40d9 (diff)
downloadlive-boot-9fc9e2a1a11b0edada38cb501fefe4f58aa414ac.tar.gz
live-boot-9fc9e2a1a11b0edada38cb501fefe4f58aa414ac.zip
Adding live-initramfs 1.87.2-1.
Diffstat (limited to 'bin/live-getty')
-rwxr-xr-xbin/live-getty20
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/live-getty b/bin/live-getty
new file mode 100755
index 0000000..6781ea5
--- /dev/null
+++ b/bin/live-getty
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+AUTOLOGIN="1"
+
+for ARGUMENT in "${@}"
+do
+ if [ "${ARGUMENT}" = "-l" ] || [ "${ARGUMENT}" = "-n" ]
+ then
+ AUTOLOGIN="0"
+ fi
+done
+
+if [ "${AUTOLOGIN}" = "1" ]
+then
+ exec /sbin/getty -n -l /sbin/live-login ${*}
+else
+ exec /sbin/getty ${*}
+fi