File: flash

package info (click to toggle)
nslu2-utils 20080403-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 288 kB
  • ctags: 10
  • sloc: sh: 2,797; makefile: 43
file content (14 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# boot from the current (flash) root partition
# nothing need be done apart from setting the
# system LED status correctly
leds beep
. /etc/default/functions
leds boot system
test -x /sbin/init && exec /sbin/init
# fallback if /sbin/init has been deleted (bad!)
leds boot system panic
exec <>/dev/console >&0 2>&0
test -x /sbin/sulogin && exec /sbin/sulogin
test -x /bin/sh && exec /bin/sh
exit 1