aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-05-15 12:10:26 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-05-15 12:10:26 +0000
commitaf8500e97d3a09023779c5e4350869111a1bf290 (patch)
tree554ab5e4197a61c03a627a139e322e23f5e1f5a6 /package/base-files/files/lib
parent01287654f215c79c70fb7e4addc4f59d0719341b (diff)
downloadupstream-af8500e97d3a09023779c5e4350869111a1bf290.tar.gz
upstream-af8500e97d3a09023779c5e4350869111a1bf290.tar.bz2
upstream-af8500e97d3a09023779c5e4350869111a1bf290.zip
sysupgrade: use sysrq-trigger if available
SVN-Revision: 15865
Diffstat (limited to 'package/base-files/files/lib')
-rw-r--r--package/base-files/files/lib/upgrade/common.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh
index 361c73a5ee..9ba9e23e7e 100644
--- a/package/base-files/files/lib/upgrade/common.sh
+++ b/package/base-files/files/lib/upgrade/common.sh
@@ -167,6 +167,7 @@ do_upgrade() {
[ -n "$DELAY" ] && sleep "$DELAY"
ask_bool 1 "Reboot" && {
v "Rebooting system..."
+ echo b 2>/dev/null >/proc/sysrq-trigger
reboot
}
}