summaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/etc/hotplug.d/button/10-generic.sh
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-12-15 02:01:00 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-12-15 02:01:00 +0000
commit5d8e0585ac778f4dde3ead2cee576695c351c628 (patch)
tree7718c94346c0563e0eb5f87d091d6fb59ab98a48 /target/linux/lantiq/base-files/etc/hotplug.d/button/10-generic.sh
parentff7205d7e14952581d31d4c07b537bda1e57fd43 (diff)
[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/button/10-generic.sh')
-rw-r--r--target/linux/lantiq/base-files/etc/hotplug.d/button/10-generic.sh3
1 files changed, 3 insertions, 0 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 b2fdda23f..1d1467ade 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