4 .
/lib
/functions
/system.sh
13 export SAVE_PARTITIONS
=1
17 export CONFFILES
=/tmp
/sysupgrade.conffiles
18 export CONF_TAR
=/tmp
/sysupgrade.tgz
21 [ -f "$CONF_TAR" ] ||
export SAVE_CONFIG
=0
22 [ -f /tmp
/sysupgrade.always.overwrite.bootdisk.partmap
] && export SAVE_PARTITIONS
=0
38 if [ -n "$IMAGE" ] && type 'platform_pre_upgrade' >/dev
/null
2>/dev
/null
; then
39 IS_PRE_UPGRADE
=1 platform_pre_upgrade
"$IMAGE"
41 # Needs to be unset again because of busybox weirdness ...
45 if [ -n "$(rootfs_type)" ]; then
46 echo "Switching to ramdisk..."
49 exec /bin
/busybox ash
-c "$COMMAND"