2 # Copyright (C) 2007 OpenWrt.org
12 netmsg
192.168.1.255 "Entering Failsafe!"
13 telnetd
-l /bin
/login
<> /dev
/null
2>&1
18 export PATH
=/bin
:/sbin
:/usr
/bin
:/usr
/sbin
19 mount none
/proc
-t proc
20 size
=$
(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc
/meminfo
)
21 mount none
/tmp
-t tmpfs
-o size
=$size
22 if grep devfs
/proc
/filesystems
> /dev
/null
; then
23 mount none
/dev
-t devfs
27 mount
-t sysfs none
/sys
28 mount
-t tmpfs tmpfs
/dev
-o size
=512K
29 mknod
/dev
/console c
5 1
31 /sbin
/hotplug2
--no-persistent --coldplug --max_children 1
36 mount none
/dev
/pts
-t devpts
38 # the shell really doesn't like having stdin/out closed
39 # that's why we use /dev/pty/m0 and m1 as replacement
40 # for /dev/console if there's no serial console available
41 dd if=/dev
/console of
=/dev
/null bs
=1 count
=0 >/dev
/null
2>/dev
/null || \
45 #FIXME : use the MTX-1 button to catch failsafe
46 trap 'FAILSAFE=true' USR1
47 echo '/sbin/hotplug' > /proc
/sys
/kernel
/hotplug
51 eval ${FAILSAFE:+failsafe}
53 lock
-w /tmp
/.failsafe
55 echo /sbin
/hotplug-call
> /proc
/sys
/kernel
/hotplug
This page took 0.050877 seconds and 5 git commands to generate.