mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2025-04-21 12:27:27 +03:00
nanonotefiles: make inittab work with minimal config system
This commit is contained in:
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
|
::shutdown:/etc/init.d/rcS K stop
|
||||||
tts/0::askfirst:/bin/ash --login
|
tts/0::askfirst:/bin/ash --login
|
||||||
ttyS0::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
|
tty2::askfirst:/bin/ash --login
|
||||||
tty3::askfirst:/bin/ash --login
|
tty3::askfirst:/bin/ash --login
|
||||||
tty4::askfirst:/bin/ash --login
|
tty4::askfirst:/bin/ash --login
|
||||||
|
|||||||
Reference in New Issue
Block a user