aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/upgrade
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
commit55317e85f0fcf213bb273b614d09211ea58f748d (patch)
treec7a7ee17f3be2c82016a6ce8c802d119580e7ff8 /package/base-files/files/lib/upgrade
parent37319410fe9edd7acb1a2e21e0a039f3a205456c (diff)
downloadupstream-55317e85f0fcf213bb273b614d09211ea58f748d.tar.gz
upstream-55317e85f0fcf213bb273b614d09211ea58f748d.tar.bz2
upstream-55317e85f0fcf213bb273b614d09211ea58f748d.zip
[package] sysupgrade: use sysrq-trigger if available
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15865 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib/upgrade')
-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
}
}