From: Daniel Dickinson Date: Sun, 30 May 2010 01:33:09 +0000 (+0000) Subject: brcm63xx: Added preinit reset button module loading for devices known to support... X-Git-Tag: reboot~19765 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=82edb6eafa67daa92624a9042a5d646e3bac88b5;p=openwrt%2Fstaging%2Flynxis.git 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) SVN-Revision: 21628 --- 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 + +