projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[lantiq] cleanup basefiles
[openwrt.git]
/
target
/
linux
/
lantiq
/
base-files
/
etc
/
hotplug.d
/
button
/
10-generic.sh
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
(file)
--- 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