aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/etc/hotplug.d
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-12-15 02:01:00 +0000
committerJohn Crispin <blogic@openwrt.org>2012-12-15 02:01:00 +0000
commitdc4a41291d280d0d2b0bc1875f0b41c62953440f (patch)
tree7718c94346c0563e0eb5f87d091d6fb59ab98a48 /target/linux/lantiq/base-files/etc/hotplug.d
parent8bfb4ab15b21a7a959a914b93ebca40c3120d3a5 (diff)
downloadupstream-dc4a41291d280d0d2b0bc1875f0b41c62953440f.tar.gz
upstream-dc4a41291d280d0d2b0bc1875f0b41c62953440f.tar.bz2
upstream-dc4a41291d280d0d2b0bc1875f0b41c62953440f.zip
[lantiq] cleanup basefiles
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34698 3c298f89-4303-0410-b956-a3cf2f4a3e73
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.sh3
-rw-r--r--target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom5
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 b2fdda23f8..1d1467adef 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 1eee55e223..e58ca34de4 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