diff options
author | John Crispin <john@openwrt.org> | 2012-12-15 02:01:00 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2012-12-15 02:01:00 +0000 |
commit | 1dece11487e937deb4691f73545c1403d018421d (patch) | |
tree | 4a2e99f213629991d7a9520a3408028e3b42f9b3 /target/linux/lantiq/base-files/etc/hotplug.d | |
parent | 601bc28669719c8ef004e108cb0bc9e5c784412e (diff) | |
download | mtk-20170518-1dece11487e937deb4691f73545c1403d018421d.zip mtk-20170518-1dece11487e937deb4691f73545c1403d018421d.tar.gz mtk-20170518-1dece11487e937deb4691f73545c1403d018421d.tar.bz2 |
cleanup basefiles
SVN-Revision: 34698
Diffstat (limited to 'target/linux/lantiq/base-files/etc/hotplug.d')
-rw-r--r-- | target/linux/lantiq/base-files/etc/hotplug.d/button/10-generic.sh | 3 | ||||
-rw-r--r-- | target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/target/linux/lantiq/base-files/etc/hotplug.d/button/10-generic.sh b/target/linux/lantiq/base-files/etc/hotplug.d/button/10-generic.sh index b2fdda2..1d1467a 100644 --- a/target/linux/lantiq/base-files/etc/hotplug.d/button/10-generic.sh +++ b/target/linux/lantiq/base-files/etc/hotplug.d/button/10-generic.sh @@ -7,11 +7,14 @@ case "${BUTTON}" in BTN_0) logger "reset pressed" + echo "REBOOT" > /dev/console + sleep 3 sync reboot ;; BTN_1) logger "factory pressed" + echo "FACTORY RESET" > /dev/console jffs2_mark_erase "rootfs_data" sync reboot diff --git a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index 1eee55e..e58ca34 100644 --- a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -23,12 +23,11 @@ rt2x00_eeprom_extract() { } [ -e /lib/firmware/$FIRMWARE ] && exit 0 - -. /lib/lantiq.sh +. /lib/functions/lantiq.sh case "$FIRMWARE" in "RT2860.eeprom" ) - local board=$(lantiq_board_name) + local board=$(lantiq_board_id) case $board in ARV7525PW|ARV752DPW) rt2x00_eeprom_extract "board_config" 1040 272 |