export SAVE_CONFIG=1
export DELAY=
export CONF_IMAGE=
-export GZIPED=
+export GZIPED=0
# parse options
while [ -n "$1" ]; do
case "$1" in
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