update file paths for tmp

This commit is contained in:
Alfonso Gamboa 2022-04-13 01:29:04 -07:00
parent 0856aea959
commit 4e2f4967f3
2 changed files with 4 additions and 4 deletions

View File

@ -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; } &

View File

@ -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