summaryrefslogtreecommitdiff
path: root/package/base-files/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
commit5e7cb507cdb00f627ca1dc14faca87eff0f1de70 (patch)
treec5b0f60f401f76b91d9328c75130919b89759877 /package/base-files/files
parentf95db8bac8334bbf5add2b4dbf1b13a064295dc7 (diff)
downloadmtk-20170518-5e7cb507cdb00f627ca1dc14faca87eff0f1de70.zip
mtk-20170518-5e7cb507cdb00f627ca1dc14faca87eff0f1de70.tar.gz
mtk-20170518-5e7cb507cdb00f627ca1dc14faca87eff0f1de70.tar.bz2
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
SVN-Revision: 7810
Diffstat (limited to 'package/base-files/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 6efd546..098ad04 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 e5fdd43..8163f79 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