luci-addons: Fixed keeping of configuration files in luci-flash
authorSteven Barth <steven@midlink.org>
Sun, 3 Aug 2008 09:52:12 +0000 (09:52 +0000)
committerSteven Barth <steven@midlink.org>
Sun, 3 Aug 2008 09:52:12 +0000 (09:52 +0000)
contrib/package/luci-addons/dist/sbin/luci-flash

index 3ff478f0f522f9e1094e8152f21e623c0f5feaea..d58561e6f141271219bc44a2b27f539cef350943 100755 (executable)
@@ -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'