Happy to be able to help in the small ways I am capable of, looking forward to a new Develop version!
I've just rebooted my router, but the problem hasn't occurred. I've attached the syslog in case there is any useful information in there.
OK, I have finished implementing & testing the fix. Note that you will still see the "
YazDHCP: **ERROR**: Backup directory [...] NOT FOUND" messages in the syslog during
reboot when the USB drive is
not yet available, and the alternate path will be set *temporarily* since the code needs to initialize the path to a "good" value. However, after the reboot process has been completed and the USB drive is in fact fully mounted & available, any time you run YazDHCP the code will re-initialize with your expected custom directory path.
Here are the instructions to get the latest
TEST script version so you can verify the fix with your own router setup, especially the reboot scenarios.
1) Make sure your YazDHCP version is on the latest
develop branch
1.0.6 revision.
Bash:
/jffs/scripts/YazDHCP develop
/jffs/scripts/YazDHCP forceupdate
2) Remove the previous/older TEST script file:
Bash:
rm -f /jffs/scripts/YazDHCP.sh.MOD.TEST.txt
3) Download the latest
TEST script file from PasteBin:
Bash:
curl -kLSs --retry 3 --retry-delay 5 --retry-connrefused pastebin.com/raw/dGF2pEaJ | tr -d '\r' > /jffs/scripts/YazDHCP.sh.MOD.TEST.txt
chmod 755 /jffs/scripts/YazDHCP.sh.MOD.TEST.txt
4) Save the "original" shell script file by renaming it.
Bash:
mv -f /jffs/scripts/YazDHCP /jffs/scripts/YazDHCP.sh.SAVE.txt
5) Replace the "original" script with the latest
TEST script version:
Bash:
cp -fp /jffs/scripts/YazDHCP.sh.MOD.TEST.txt /jffs/scripts/YazDHCP
6) Run the following command to double-check that you have in fact the latest
TEST version:
Bash:
grep -E "# Last Modified:|readonly SCRIPT_VERSION=" /jffs/scripts/YazDHCP
The output should look as follows:
Bash:
# Last Modified: 2023-Jun-16
readonly SCRIPT_VERSION="v1.0.6_Beta_20230616_#2"
If it's different, you don't have the latest
TEST script version. Start again from step 2 above.
7) Make sure to use the CLI menu to set the backup directory to your custom directory path. This step is to ensure that the expected backup path has been set properly *
before* testing/verification can begin.
8) Run YazDHCP as usual to test your specific setup.