mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-19 04:07:30 +02:00
nanonotefiles: make inittab work with minimal config system
This commit is contained in:
parent
595140ee63
commit
1ec3c83b70
13
nanonote-files/base-files/usr/bin/login.nn
Executable file
13
nanonote-files/base-files/usr/bin/login.nn
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -f /usr/bin/gmenu2x ]; then
|
||||
exec /usr/bin/gmenu2x
|
||||
fi
|
||||
|
||||
if [ -f /bin/ash ]; then
|
||||
exec /bin/ash --login
|
||||
fi
|
||||
|
||||
if [ -f /bin/bash ]; then
|
||||
exec /bin/sh --login
|
||||
fi
|
@ -2,7 +2,7 @@
|
||||
::shutdown:/etc/init.d/rcS K stop
|
||||
tts/0::askfirst:/bin/ash --login
|
||||
ttyS0::askfirst:/bin/ash --login
|
||||
tty1::respawn:/usr/bin/gmenu2x
|
||||
tty1::respawn:/usr/bin/login.nn
|
||||
tty2::askfirst:/bin/ash --login
|
||||
tty3::askfirst:/bin/ash --login
|
||||
tty4::askfirst:/bin/ash --login
|
||||
|
Loading…
Reference in New Issue
Block a user