base-files: pass "save_config" option to the "sysupgrade" method
[openwrt/openwrt.git] / package / base-files / files / lib / upgrade / do_stage2
index 8aae45256081a01e2134557145dbd6cbdad2b816..0e6cc1bfc360993a64fe50653433e0d9e3489810 100755 (executable)
@@ -11,7 +11,7 @@ else
        default_do_upgrade "$IMAGE"
 fi
 
-if [ "$SAVE_CONFIG" -eq 1 ] && type 'platform_copy_config' >/dev/null 2>/dev/null; then
+if [ "$UPGRADE_OPT_SAVE_CONFIG" -eq 1 ] && type 'platform_copy_config' >/dev/null 2>/dev/null; then
        platform_copy_config
 fi