From 5e7cb507cdb00f627ca1dc14faca87eff0f1de70 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 30 Jun 2007 21:09:02 +0000 Subject: [PATCH] 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 --- package/base-files/files/etc/hotplug2-init.rules | 3 +++ package/base-files/files/etc/preinit | 2 +- .../base-files/default/etc/hotplug2-init.rules | 12 ------------ .../brcm-2.4/base-files/default/etc/preinit.arch | 1 - 4 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 target/linux/brcm-2.4/base-files/default/etc/hotplug2-init.rules diff --git a/package/base-files/files/etc/hotplug2-init.rules b/package/base-files/files/etc/hotplug2-init.rules index 6efd5466891c..098ad047a7f6 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 e5fdd43ae1a9..8163f79ae69e 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 diff --git a/target/linux/brcm-2.4/base-files/default/etc/hotplug2-init.rules b/target/linux/brcm-2.4/base-files/default/etc/hotplug2-init.rules deleted file mode 100644 index 098ad047a7f6..000000000000 --- a/target/linux/brcm-2.4/base-files/default/etc/hotplug2-init.rules +++ /dev/null @@ -1,12 +0,0 @@ -DEVICENAME ~~ (tun|tap[0-9]) { - makedev /dev/net/%DEVICENAME% 0644 - next -} - -DEVPATH is set { - makedev /dev/%DEVICENAME% 0644 -} - -SUBSYSTEM ~~ button { - exec kill -USR1 1 ; -} diff --git a/target/linux/brcm-2.4/base-files/default/etc/preinit.arch b/target/linux/brcm-2.4/base-files/default/etc/preinit.arch index ec171c356ef4..a0d97c68bc18 100755 --- a/target/linux/brcm-2.4/base-files/default/etc/preinit.arch +++ b/target/linux/brcm-2.4/base-files/default/etc/preinit.arch @@ -28,7 +28,6 @@ mount none /proc -t proc insmod diag set_state preinit -trap 'FAILSAFE=true' USR1 echo '/sbin/hotplug.failsafe' > /proc/sys/kernel/hotplug ifname=eth0 -- 2.30.2