From 4e2f4967f300b34b8ac36dd442b832853d3167da Mon Sep 17 00:00:00 2001 From: Alfonso Gamboa Date: Wed, 13 Apr 2022 01:29:04 -0700 Subject: [PATCH] update file paths for tmp --- SD_ROOT/wz_mini/etc/init.d/v3_init.sh | 4 ++-- SD_ROOT/wz_mini/run_mmc.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SD_ROOT/wz_mini/etc/init.d/v3_init.sh b/SD_ROOT/wz_mini/etc/init.d/v3_init.sh index 45255c9..b0a3db1 100755 --- a/SD_ROOT/wz_mini/etc/init.d/v3_init.sh +++ b/SD_ROOT/wz_mini/etc/init.d/v3_init.sh @@ -15,8 +15,8 @@ echo ' ' mount -t tmpfs /tmp -cp /opt/wz_mini/etc/shadow /tmp/ -mount --bind /tmp/shadow /etc/shadow +cp /opt/wz_mini/etc/shadow /tmp/.shadow +mount --bind /tmp/.shadow /etc/shadow chmod 400 /etc/shadow { sleep 30; /media/mmc/wz_mini/run_mmc.sh > /media/mmc/wz_mini/wz_mini_hacks.log; } & diff --git a/SD_ROOT/wz_mini/run_mmc.sh b/SD_ROOT/wz_mini/run_mmc.sh index 4f5e591..914eab7 100755 --- a/SD_ROOT/wz_mini/run_mmc.sh +++ b/SD_ROOT/wz_mini/run_mmc.sh @@ -45,8 +45,8 @@ fi if [[ "$DISABLE_FW_UPGRADE" == "true" ]]; then mkdir /tmp/Upgrade mount -t tmpfs -o size=1,nr_inodes=1 none /tmp/Upgrade - echo -e "127.0.0.1 localhost \n127.0.0.1 wyze-upgrade-service.wyzecam.com" > /tmp/hosts_wz - mount --bind /tmp/hosts_wz /etc/hosts + echo -e "127.0.0.1 localhost \n127.0.0.1 wyze-upgrade-service.wyzecam.com" > /tmp/.hosts_wz + mount --bind /tmp/.hosts_wz /etc/hosts fi echo set hostname