X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm63xx%2Fbase-files%2Flib%2Fpreinit%2F05_reset_button_brcm63xx;fp=target%2Flinux%2Fbrcm63xx%2Fbase-files%2Flib%2Fpreinit%2F05_reset_button_brcm63xx;h=f33825f9650fd85f5eb3aaea7fae482c2d03dc25;hb=82edb6eafa67daa92624a9042a5d646e3bac88b5;hp=0000000000000000000000000000000000000000;hpb=cc8fba84418b680cc4c5f042fcdaddc7d790ed2c;p=openwrt%2Fopenwrt.git 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 + +