Переглянути джерело

update automatic firmware updates block and readme

Alfonso Gamboa 4 роки тому
батько
коміт
104da95a8d
2 змінених файлів з 12 додано та 1 видалено
  1. 8 1
      README.md
  2. 4 0
      setup.sh

+ 8 - 1
README.md

@@ -8,7 +8,8 @@ Run the latest stable firmware on your v3 cam and have root access to the device
 * Flashes the latest firmware during installation ( 4.36.8.32, as of this writing )
 * Enables SSH, telnet will be disabled after installation.
 * Add your own changes to run at boot into the script on the micro sd card located at /media/mmc/run_mmc.sh, mount nfs, run ping, whatever you want.
-* Ability to update to the latest stable or beta firmware, this mod should survive updates ( as long as the firmware update does not change /dev/mtd2. Future versions of this mod may block updates if desired )
+* Ability to update to the latest stable or beta firmware, this mod should survive updates ( as long as the firmware update does not change /dev/mtd2.
+* Ability to block remotely-initiated firmware updates.
 * An Internet connection is required to download and patch the files required for this to work.
 * Inspired by HclX and WyzeHacks, borrowed busybox and dropbearmulti from his v2 repo.  Bless you for all your work!  You are the master!
 
@@ -32,6 +33,12 @@ On Device:
 cd /media/mmc
 ./wz_mini_installer.sh
 ```
+To disable automatic firmware updates, edit run_mmc.sh on your micro sd card, un-comment the following:
+```bash
+#echo "Disable remote firmware upgrade"
+#mkdir /tmp/Upgrade
+#mount -t tmpfs -o size=1,nr_inodes=1 none /tmp/Upgrade
+```
 
 ## WARNING
 ```

+ 4 - 0
setup.sh

@@ -61,6 +61,10 @@ dmesg > /media/mmc/dmesg.log
 echo "Run dropbear ssh server"
 /media/mmc/dropbearmulti dropbear -R -m
 
+#echo "Disable remote firmware upgrade"
+#mkdir /tmp/Upgrade
+#mount -t tmpfs -o size=1,nr_inodes=1 none /tmp/Upgrade
+
 sleep 3
 
 #Place commands here to run 30 seconds after boot