Signed-off-by: John Crispin <john@phrozen.org>
tar czf /tmp/snapshot.tar.gz *
snapshot_tool write
reboot
}
do_config_push() {
tar czf /tmp/snapshot.tar.gz *
snapshot_tool write
reboot
}
do_config_push() {
tar czf /tmp/config.tar.gz *
snapshot_tool config_write
}
tar czf /tmp/config.tar.gz *
snapshot_tool config_write
}
. /lib/upgrade/common.sh
ubus call system upgrade
touch /tmp/sysupgrade
. /lib/upgrade/common.sh
ubus call system upgrade
touch /tmp/sysupgrade
tar czf /tmp/snapshot.tar.gz *
kill_remaining TERM
sleep 3
tar czf /tmp/snapshot.tar.gz *
kill_remaining TERM
sleep 3
+[ -d /volatile/upper ] && {
case $1 in
push)
do_snapshot_push
case $1 in
push)
do_snapshot_push