aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-06-30 21:09:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-06-30 21:09:02 +0000
commita2a0717b73b404f686b7db3ffcd4dfec2e7d1aa3 (patch)
tree5b9c6abdaa11014c66cb58f6002555cc259cee7a /package/base-files
parent2dadc364a14b6daab2908589488e8a446d37c5bf (diff)
downloadmaster-187ad058-a2a0717b73b404f686b7db3ffcd4dfec2e7d1aa3.tar.gz
master-187ad058-a2a0717b73b404f686b7db3ffcd4dfec2e7d1aa3.tar.bz2
master-187ad058-a2a0717b73b404f686b7db3ffcd4dfec2e7d1aa3.zip
move parts of the failsafe code to the generic base-files - will be used on atheros as well as soon as i've added support for it
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7810 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rw-r--r--package/base-files/files/etc/hotplug2-init.rules3
-rwxr-xr-xpackage/base-files/files/etc/preinit2
2 files changed, 4 insertions, 1 deletions
diff --git a/package/base-files/files/etc/hotplug2-init.rules b/package/base-files/files/etc/hotplug2-init.rules
index 6efd546689..098ad047a7 100644
--- a/package/base-files/files/etc/hotplug2-init.rules
+++ b/package/base-files/files/etc/hotplug2-init.rules
@@ -7,3 +7,6 @@ DEVPATH is set {
makedev /dev/%DEVICENAME% 0644
}
+SUBSYSTEM ~~ button {
+ exec kill -USR1 1 ;
+}
diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit
index e5fdd43ae1..8163f79ae6 100755
--- a/package/base-files/files/etc/preinit
+++ b/package/base-files/files/etc/preinit
@@ -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