you mean easyddup-vars.ini, I dont see easyddup.ini
no, you need to rename easyddup.ini.sample to easyddup.ini then modify it.
@yoyoma2 do you want to revise the instructions in the readme file?
oh, ok I see
thanks
no problem, stay safe & have fun.
last thing, about emails, IM ok with that?
Code:
# settings file for checknewversion.sh
#
# uncomment/modify lines below to tailor to your environment
# N means no/off and Y means yes/on (y or n also work)
# lines starting with # are commented out
# if you use an internet mail server like gmail (default)
MAILSERVER="smtps://smtp.gmail.com:465"
EMAILUSER="nxxxxxxxxx78@gmail.com"
EMAILCRED='xxxxxxxxxegVs'
EMAILTO="nxxxxx78@gmail.com"
# if you use a local mail server like Entware's XMail
LOCALMAILSERVER="mydomain.com"
LOCALEMAILTO="mylocalmailuser@mydomain.com"
I'll add something about the easyddup.ini file to the readme.
I'll replace your demo in the 1st post if you make another one. We don't want to upset the moderators/admins with something too big though. I still like your current demo TBH.
If a build was pulled, there's usually something not too good about it. How about yet another keyword to turn auto downgrade (pulled builds) On/Off?
Not interrupting a firmware write partially through is a safety feature not a bug.
How about yet another keyword to turn auto downgrade (pulled builds) On/Off?
auto downgrade when the build is pulled is a bit scary. I think it should be manual, because the user needs to go to the forum to check for instruction if it's better to downgrade to some specific build, or to keep using the pulled build and wait for the next release (if the router is not one of the affected models), or user self-decides that a certain older build is more stable and skips a few newer builds in the list.
yoyoma2 wrote:
Not interrupting a firmware write partially through is a safety feature not a bug.
I don't know if there's any proper way to do that, but I usually edit esayddup.sh line 19 to force the current build number to some older build, then manually run /opt/easyddup/checknewversion.sh
Please remember to revert any changes in easyddup.sh after you've done testing.
Abort with an error message (onscreen and easyddup.log) when build may have been pulled and EDDUP_AUTO_SELECT_LATEST is on to avoid automatic downgrade.
Also updated the Readme.txt feature list and mention easyddup.ini usage.
Last edited by yoyoma2 on Wed Dec 22, 2021 4:16; edited 1 time in total
If you already installed the latest build 47900, for testing new version email notification @IONK's tip about temporarily uncommenting and editing easyddup.sh line 19 to 47874 (or any non-latest number) is excellent.
If your checknewversion.ini file contains REPEATEDEMAILS=Y then you'll get an email about the same new version every time you run checknewversion.sh.
The check_version file in the package gives an example of running the checknewversion.sh as a cron job daily at 11:30AM. Add a similar line to Administration->Management->Additional Cron Jobs to automate the check. Run checknewversion.sh manually first until you you get the email notifications working.
If you already installed the latest build 47900, for testing new version email notification @IONK's tip about temporarily uncommenting and editing easyddup.sh line 19 to 47874 (or any non-latest number) is excellent.
If your checknewversion.ini file contains REPEATEDEMAILS=Y then you'll get an email about the same new version every time you run checknewversion.sh.
The check_version file in the package gives an example of running the checknewversion.sh as a cron job daily at 11:30AM. Add a similar line to Administration->Management->Additional Cron Jobs to automate the check. Run checknewversion.sh manually first until you you get the email notifications working.
not sure if IM ok but I have error.
Code:
root@DD-WRT:~# cd /opt/usr/ddwrt_update/easyddup
root@DD-WRT:/opt/usr/ddwrt_update/easyddup# ./checknewversion.sh
ERROR: Required file /opt/easyddup/easyddup.sh is missing or not executable.
root@DD-WRT:/opt/usr/ddwrt_update/easyddup# ./easyddup.sh
All dd-wrt upgrade builds available online for 2021
1) 12-20-2021-r47900 c <--- current
Current build: 47900
Select a build to install (or Q): Q
Quitting
root@DD-WRT:/opt/usr/ddwrt_update/easyddup# ./checknewversion.sh
ERROR: Required file /opt/easyddup/easyddup.sh is missing or not executable.
root@DD-WRT:/opt/usr/ddwrt_update/easyddup#
Easyddup is designed to be installed in /opt/easyddup but you can work around this with a symbolic link.
Code:
cd /opt
ln -s /opt/usr/ddwrt_update/easyddup
I actually have easyddup on a different/larger partition but a symbolic link makes it work. Editing EASYDDUPDIR in the script itself as @IOINK said works too but every easyddup upgrade will overwrite your changes.