base-files: pass "save_config" option to the "sysupgrade" method
[openwrt/openwrt.git] / package / base-files / files / sbin / sysupgrade
index 001e6444760628c350213983a4d0505ac5ef1ec2..15514159b35fd22f4feb2fdec4e69d48815d8d28 100755 (executable)
@@ -369,6 +369,9 @@ else
        ubus call system sysupgrade "{
                \"prefix\": $(json_string "$RAM_ROOT"),
                \"path\": $(json_string "$IMAGE"),
-               \"command\": $(json_string "$COMMAND")
+               \"command\": $(json_string "$COMMAND"),
+               \"options\": {
+                       \"save_config\": $SAVE_CONFIG
+               }
        }"
 fi