aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx
diff options
context:
space:
mode:
authorDaniel Dickinson <daniel@cshore.neomailbox.net>2010-05-30 01:33:09 +0000
committerDaniel Dickinson <daniel@cshore.neomailbox.net>2010-05-30 01:33:09 +0000
commitd0f8de305f52263b2de08f1d233cb49fac382a94 (patch)
treeb42a2bb5a24f62ecb83fc86ac6814aede5d0d62f /target/linux/brcm63xx
parentf8e8dcf7464df8ec6b04b25d04ee721a7c4d4816 (diff)
downloadupstream-d0f8de305f52263b2de08f1d233cb49fac382a94.tar.gz
upstream-d0f8de305f52263b2de08f1d233cb49fac382a94.tar.bz2
upstream-d0f8de305f52263b2de08f1d233cb49fac382a94.zip
brcm63xx: Added preinit reset button module loading for devices known to support it and for which /lib/brcm63xx.sh has the definitions (currently only 96348GW - Tecom 6x00)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21628 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx')
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx b/target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx
new file mode 100644
index 0000000000..f33825f965
--- /dev/null
+++ b/target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+. /lib/brcm63xx.sh
+
+enable_reset_button() {
+ if [ "$brcm63xx_has_reset_button" = "true" ]; then
+ insmod input-core
+ insmod input-polldev
+ insmod gpio_buttons
+ insmod button-hotplug
+ fi
+}
+
+boot_hook_add preinit_main enable_reset_button
+
+