diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-09-12 19:51:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-09-12 19:51:30 +0000 |
commit | 22585e578b675071f0983d1156fb6ef546cb4f7c (patch) | |
tree | c3eaee48fd48e6b5540101e3a17fa6f580d74ed2 /package/base-files/files/lib | |
parent | 1abbb27f865a841a42f6f60db34d592c1a23c31a (diff) | |
download | mtk-20170518-22585e578b675071f0983d1156fb6ef546cb4f7c.zip mtk-20170518-22585e578b675071f0983d1156fb6ef546cb4f7c.tar.gz mtk-20170518-22585e578b675071f0983d1156fb6ef546cb4f7c.tar.bz2 |
sysupgrade: add optional delay before rebooting
SVN-Revision: 12572
Diffstat (limited to 'package/base-files/files/lib')
-rw-r--r-- | package/base-files/files/lib/upgrade/common.sh | 1 |
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 f0d0c20..59ac7a7 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -147,5 +147,6 @@ do_upgrade() { jffs2_copy_config fi } + [ -n "$DELAY" ] && sleep "$DELAY" ask_bool 1 "Reboot" && reboot } |