mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 13:37:19 +00:00
Backup /configs & /params
Backup /configs & /params partitions to <sd_root>/.wz_backup
This commit is contained in:
parent
5db0faf000
commit
19ff6e3fcd
@ -28,6 +28,38 @@ export WZMINI_CFG=/opt/wz_mini/wz_mini.conf
|
||||
echo "welcome to wz_post.sh"
|
||||
echo "PID $$"
|
||||
|
||||
if [ -d /opt/.wz_backup ]; then
|
||||
echo "backup directory missing"
|
||||
else
|
||||
echo "creating backup directory"
|
||||
mkdir /opt/.wz_backup
|
||||
fi
|
||||
|
||||
if [ -f /opt/wz_mini/tmp/.T31 ]; then
|
||||
echo "T31 platform backup"
|
||||
if [ -d /opt/.wz_backup/configs ]; then
|
||||
echo "configs backup directory present, not backing up again"
|
||||
else
|
||||
echo "backup /configs"
|
||||
cp -R /configs/ /opt/.wz_backup/
|
||||
fi
|
||||
elif [ -f /opt/wz_mini/tmp/.T20 ]; then
|
||||
echo "T20 platform backup"
|
||||
if [ -d /opt/.wz_backup/configs ]; then
|
||||
echo "configs backup directory present, not backing up again"
|
||||
else
|
||||
echo "backup /configs"
|
||||
cp -R /configs/ /opt/.wz_backup/
|
||||
fi
|
||||
|
||||
if [ -d /opt/.wz_backup/params ]; then
|
||||
echo "configs backup directory present, not backing up again"
|
||||
else
|
||||
echo "backup /params"
|
||||
cp -R /params/ /opt/.wz_backup/
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "$ENABLE_SWAP" == "true" ]] && [[ -e /opt/wz_mini/swap ]]; then
|
||||
echo "swap file found, enable"
|
||||
swapon /opt/wz_mini/swap
|
||||
|
4
file.chk
4
file.chk
@ -3,9 +3,9 @@ d41d8cd98f00b204e9800998ecf8427e SD_ROOT/wz_mini/mnt/.gitignore
|
||||
28cf061770da7b83fbc3752c455a02c3 SD_ROOT/wz_mini/etc/dnsmasq.conf
|
||||
34c6a4c3a941ff2becd9f487826d7692 SD_ROOT/wz_mini/etc/uvc.config
|
||||
ad7d1a2f9db3079617731b5854ce3b6a SD_ROOT/wz_mini/etc/init.d/wz_cam.sh
|
||||
0774518c06d6ef8e7181d35f194777cc SD_ROOT/wz_mini/etc/init.d/wz_init.sh
|
||||
6ef4701a06dd3f1dd76a0b2fd62cfccf SD_ROOT/wz_mini/etc/init.d/wz_init.sh
|
||||
0abc8c502bded3b056ac64ab72e76f3f SD_ROOT/wz_mini/etc/init.d/wz_user.sh
|
||||
65c7dab024c6df1107dbfb065f05a751 SD_ROOT/wz_mini/etc/init.d/wz_post.sh
|
||||
6b0ddc174715307a23179d5061952788 SD_ROOT/wz_mini/etc/init.d/wz_post.sh
|
||||
e3034eac02d8eda9902ca9cf89f0a586 SD_ROOT/wz_mini/etc/inittab
|
||||
840aa9c26726201f7cffbf001bee193a SD_ROOT/wz_mini/etc/uvc_jxf22.config
|
||||
7701fde345655472250dee076fb0b065 SD_ROOT/wz_mini/etc/wz_mini.conf.dist
|
||||
|
Loading…
Reference in New Issue
Block a user