projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9209af2
)
Don't try to pivot to new ramfs if already running on one This patch allows the sysup...
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 7 May 2009 13:51:45 +0000
(13:51 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 7 May 2009 13:51:45 +0000
(13:51 +0000)
Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
SVN-Revision: 15683
package/base-files/files/sbin/sysupgrade
patch
|
blob
|
history
diff --git
a/package/base-files/files/sbin/sysupgrade
b/package/base-files/files/sbin/sysupgrade
index 83cc95682f19f5fc0a6e0829a05f2f473a890ada..139135e8f78a49939cef7b638a407b83adc1d309 100755
(executable)
--- a/
package/base-files/files/sbin/sysupgrade
+++ b/
package/base-files/files/sbin/sysupgrade
@@
-109,5
+109,9
@@
else
fi
run_hooks "" $sysupgrade_pre_upgrade
-v "Switching to ramdisk..."
-run_ramfs '. /etc/functions.sh; include /lib/upgrade; do_upgrade'
+if [ -n "$(rootfs_type)" ]; then
+ v "Switching to ramdisk..."
+ run_ramfs '. /etc/functions.sh; include /lib/upgrade; do_upgrade'
+else
+ do_upgrade
+fi
\ No newline at end of file