move parts of the failsafe code to the generic base-files - will be used on atheros...
[openwrt/openwrt.git] / package / base-files / files / etc / preinit
index e5fdd43..8163f79 100755 (executable)
@@ -44,7 +44,7 @@ dd if=/dev/console of=/dev/null bs=1 count=0 >/dev/null 2>/dev/null && {
 exec <$M0 >$M1 2>&0
 
 echo "- preinit -"
-
+trap 'FAILSAFE=true' USR1
 [ -e /etc/preinit.arch ] && . /etc/preinit.arch
 set_state preinit
 echo "$HOTPLUG" > /proc/sys/kernel/hotplug