diff --git a/README.md b/README.md index 79b1e57..3bc5cb4 100755 --- a/README.md +++ b/README.md @@ -10,6 +10,12 @@ functions: 6. Automatically archive the recordings. # Release notes +## 0.4.02: +* Adding an option to prevent wifi disconnecting. +* Integrating TOTP based 2FA. +* Supporting camera directory name containing space characters +* Detecting stale NFS connection. + ## 0.4.01: * Detecting NFS unmount and automatically reboot the camera. * Fixing SD card size to properly support large NFS shares. diff --git a/release/wyze_hacks_0_4_02.zip b/release/wyze_hacks_0_4_02.zip index 5d7f3e1..bab923b 100755 Binary files a/release/wyze_hacks_0_4_02.zip and b/release/wyze_hacks_0_4_02.zip differ diff --git a/wyze_hack/mount_nfs.sh b/wyze_hack/mount_nfs.sh index 609e36e..85988db 100755 --- a/wyze_hack/mount_nfs.sh +++ b/wyze_hack/mount_nfs.sh @@ -114,18 +114,20 @@ do echo "NFS no longer mounted as /media/mmc" break fi + if ( timeout -t 60 df -h 2>&1| grep -q 'Stale NFS'); then echo "Stale NFS handle detected" break fi + # Check for every 10 seconds sleep 10 done -# This will make the log sync flush logs $WYZEHACK_DIR/playwav.sh /usr/share/notify/CN/user_need_check.wav 80 +# This will make the log sync flush logs killall sleep sync sleep 3