mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2024-11-22 05:27:24 +00:00
fix script execution block during upgrade
This commit is contained in:
parent
ec7d048ce0
commit
fe102143de
@ -164,13 +164,13 @@ if [[ "$DEBUG_ENABLED" == "true" ]]; then
|
||||
|
||||
elif [[ "$WEB_CAM_ENABLE" == "true" ]]; then
|
||||
sed -i '/app_init.sh/,+4d' /opt/wz_mini/tmp/.storage/rcS
|
||||
sed -i '/^# Run init/i/opt/wz_mini/etc/init.d/wz_cam.sh' /opt/wz_mini/tmp/.storage/rcS
|
||||
sed -i '/^# Run init/i/opt/wz_mini/etc/init.d/wz_cam.sh &' /opt/wz_mini/tmp/.storage/rcS
|
||||
touch /tmp/dbgflag
|
||||
|
||||
elif [[ -d /opt/Upgrade ]]; then
|
||||
sed -i '/app_init.sh/,+4d' /opt/wz_mini/tmp/.storage/rcS
|
||||
sed -i '/^# Run init/i/bin/sh /etc/profile' /opt/wz_mini/tmp/.storage/rcS
|
||||
sed -i '/^# Mount configs.*/i/opt/wz_mini/usr/bin/upgrade-run.sh\n' /opt/wz_mini/tmp/.storage/rcS
|
||||
sed -i '/^# Mount configs.*/i/opt/wz_mini/usr/bin/upgrade-run.sh &\n' /opt/wz_mini/tmp/.storage/rcS
|
||||
touch /tmp/dbgflag
|
||||
fi
|
||||
|
||||
|
2
file.chk
2
file.chk
@ -2,7 +2,7 @@
|
||||
d41d8cd98f00b204e9800998ecf8427e SD_ROOT/wz_mini/mnt/.gitignore
|
||||
34c6a4c3a941ff2becd9f487826d7692 SD_ROOT/wz_mini/etc/uvc.config
|
||||
b4e404d9205a8e139571d4e5d2b55e92 SD_ROOT/wz_mini/etc/init.d/wz_cam.sh
|
||||
8e813f033982c39f4e54b9cdb8d4b531 SD_ROOT/wz_mini/etc/init.d/v3_init.sh
|
||||
a9b1a18021476b492c2f4960a9cd1656 SD_ROOT/wz_mini/etc/init.d/v3_init.sh
|
||||
a665ee24702edd7570ba57bedafb919f SD_ROOT/wz_mini/etc/init.d/wz_user.sh
|
||||
86082f8c1b7de18463731372bac630d1 SD_ROOT/wz_mini/etc/init.d/wz_post.sh
|
||||
e3034eac02d8eda9902ca9cf89f0a586 SD_ROOT/wz_mini/etc/inittab
|
||||
|
Loading…
Reference in New Issue
Block a user