Annotation of /trunk/busybox/agetty.sh
Parent Directory | Revision Log
Revision 2141 -
(hide annotations)
(download)
(as text)
Thu Mar 28 14:37:32 2013 UTC (11 years, 6 months ago) by niro
File MIME type: application/x-sh
File size: 213 byte(s)
Thu Mar 28 14:37:32 2013 UTC (11 years, 6 months ago) by niro
File MIME type: application/x-sh
File size: 213 byte(s)
-respect all other arguments and do not prompt for a username on autologin
1 | niro | 2124 | #!/bin/sh |
2 | |||
3 | niro | 2137 | args="" |
4 | niro | 2124 | |
5 | niro | 2137 | # very basic getops |
6 | for i in $* | ||
7 | do | ||
8 | case $1 in | ||
9 | --noclear) ;; # ignore --noclear | ||
10 | niro | 2141 | --autologin=*) args+=" -n -l /sbin/autologin" ;; |
11 | *) args+=" $1" ;; | ||
12 | niro | 2137 | esac |
13 | shift | ||
14 | done | ||
15 | |||
16 | niro | 2124 | /sbin/getty ${args} |