1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-11-22 09:19:22 +02:00

nanonotefiles: make inittab work with minimal config system

This commit is contained in:
Xiangfu 2012-06-16 16:29:22 +08:00
parent 595140ee63
commit 1ec3c83b70
2 changed files with 14 additions and 1 deletions

View 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

View File

@ -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