S10firmware 714 B

12345678910111213141516
  1. #!/bin/sh
  2. source /opt/wz_mini/wz_mini.conf
  3. if [[ "$DISABLE_FW_UPGRADE" == "true" ]]; then
  4. mkdir /tmp/Upgrade
  5. mount -t tmpfs -o size=1,nr_inodes=1 none /tmp/Upgrade
  6. #Setting this host causes iCamera to segfault, lets ignore it for now
  7. #echo -e "127.0.0.1 localhost \n127.0.0.1 wyze-upgrade-service.wyzecam.com" > /opt/wz_mini/tmp/.storage/hosts
  8. #mount --bind /opt/wz_mini/tmp/.storage/hosts /etc/hosts
  9. /opt/wz_mini/bin/busybox inotifyd /opt/wz_mini/usr/bin/watch_up.sh /tmp:n > /dev/null 2>&1 &
  10. echo "Firmware updates disabled"
  11. else
  12. mkdir /tmp/Upgrade
  13. /opt/wz_mini/bin/busybox inotifyd /opt/wz_mini/usr/bin/watch_up.sh /tmp:n > /dev/null 2>&1 &
  14. fi