summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/luci-addons/dist
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/package/luci-addons/dist')
-rwxr-xr-xcontrib/package/luci-addons/dist/sbin/luci-flash3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/package/luci-addons/dist/sbin/luci-flash b/contrib/package/luci-addons/dist/sbin/luci-flash
index 3ff478f0f5..d58561e6f1 100755
--- a/contrib/package/luci-addons/dist/sbin/luci-flash
+++ b/contrib/package/luci-addons/dist/sbin/luci-flash
@@ -12,6 +12,7 @@ while [ -n "$1" ]; do
case "$1" in
-k)
shift
+ export SAVE_CONFIG=1
export KEEP_PATTERN="$1"
;;
-*)
@@ -85,4 +86,4 @@ done
run_hooks "" $sysupgrade_pre_upgrade
v "Switching to ramdisk..."
-run_ramfs '. /etc/functions.sh; include /lib/upgrade; do_upgrade' \ No newline at end of file
+run_ramfs '. /etc/functions.sh; include /lib/upgrade; do_upgrade'