diff options
Diffstat (limited to 'target/linux/brcm63xx/base-files')
-rw-r--r-- | target/linux/brcm63xx/base-files/lib/preinit/05_reset_button_brcm63xx | 16 |
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 000000000..f33825f96 --- /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 + + |