brcm63xx: Added preinit reset button module loading for devices known to support...
authorDaniel Dickinson <crazycshore@gmail.com>
Sun, 30 May 2010 01:33:09 +0000 (01:33 +0000)
committerDaniel Dickinson <crazycshore@gmail.com>
Sun, 30 May 2010 01:33:09 +0000 (01:33 +0000)
SVN-Revision: 21628

target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx [new file with mode: 0644]

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 (file)
index 0000000..f33825f
--- /dev/null
@@ -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
+
+