Author: luka
Date: 2016-05-11 00:36:44 +0200 (Wed, 11 May 2016)
New Revision: 49337

Modified:
   trunk/package/system/fstools/files/snapshot
Log:
fstools: fix snapshot support

Signed-off-by: John Crispin <[email protected]>

Modified: trunk/package/system/fstools/files/snapshot
===================================================================
--- trunk/package/system/fstools/files/snapshot 2016-05-10 22:36:43 UTC (rev 
49336)
+++ trunk/package/system/fstools/files/snapshot 2016-05-10 22:36:44 UTC (rev 
49337)
@@ -24,7 +24,7 @@
 }
 
 do_snapshot_push() {
-       cd /volatile
+       cd /volatile/upper
        tar czf /tmp/snapshot.tar.gz *
        snapshot_tool write
        reboot
@@ -31,7 +31,7 @@
 }
 
 do_config_push() {
-       cd /volatile
+       cd /volatile/upper
        tar czf /tmp/config.tar.gz *
        snapshot_tool config_write
 }
@@ -66,7 +66,7 @@
        . /lib/upgrade/common.sh
        ubus call system upgrade
        touch /tmp/sysupgrade
-       cd /overlay
+       cd /overlay/upper
        tar czf /tmp/snapshot.tar.gz *
        kill_remaining TERM
        sleep 3
@@ -82,7 +82,7 @@
 esac
 }
 
-[ -d /volatile ] && {
+[ -d /volatile/upper ] && {
 case $1 in
 push)
        do_snapshot_push
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to