mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-01-10 22:56:59 +00:00
Fixed configbackup init script not backing up files (#304)
* Fixed configbackup init script not backing up files The /configs directory isn't mounted at this point in the boot process, as a result this backup doesn't actually work and just copies an empty directory every time. * Tested on T20 and added missing /configs mount in backup script
This commit is contained in:
parent
b7c27c73bd
commit
9973c5869d
@ -25,7 +25,9 @@ case "$1" in
|
|||||||
echo "Factory configs backup directory present, not backing up again"
|
echo "Factory configs backup directory present, not backing up again"
|
||||||
else
|
else
|
||||||
echo "Backup /configs"
|
echo "Backup /configs"
|
||||||
|
mount -t jffs2 /dev/mtdblock6 /configs
|
||||||
cp -R /configs/ /opt/.wz_backup/
|
cp -R /configs/ /opt/.wz_backup/
|
||||||
|
umount /configs
|
||||||
fi
|
fi
|
||||||
elif [ -f /opt/wz_mini/tmp/.T20 ]; then
|
elif [ -f /opt/wz_mini/tmp/.T20 ]; then
|
||||||
echo "T20 platform backup"
|
echo "T20 platform backup"
|
||||||
@ -33,14 +35,18 @@ case "$1" in
|
|||||||
echo "Factory configs backup directory present, not backing up again"
|
echo "Factory configs backup directory present, not backing up again"
|
||||||
else
|
else
|
||||||
echo "Backup /configs"
|
echo "Backup /configs"
|
||||||
|
mount -t jffs2 /dev/mtdblock8 /configs
|
||||||
cp -R /configs/ /opt/.wz_backup/
|
cp -R /configs/ /opt/.wz_backup/
|
||||||
|
umount /configs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d /opt/.wz_backup/params ]; then
|
if [ -d /opt/.wz_backup/params ]; then
|
||||||
echo "Factory params backup directory present, not backing up again"
|
echo "Factory params backup directory present, not backing up again"
|
||||||
else
|
else
|
||||||
echo "Backup /params"
|
echo "Backup /params"
|
||||||
|
mount -t jffs2 /dev/mtdblock9 /params
|
||||||
cp -R /params/ /opt/.wz_backup/
|
cp -R /params/ /opt/.wz_backup/
|
||||||
|
umount /params
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user