easyddup a simple upgrade/downgrade utility

Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload
Goto page Previous  1, 2, 3 ... 11, 12, 13 ... 19, 20, 21  Next
Author Message
jauch888888
DD-WRT User


Joined: 23 Apr 2020
Posts: 101

PostPosted: Wed Dec 22, 2021 0:18    Post subject: Reply with quote
IONK wrote:
jauch888888 wrote:
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
Sponsor
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 951

PostPosted: Wed Dec 22, 2021 0:19    Post subject: Reply with quote
jauch888888 wrote:
IONK wrote:
jauch888888 wrote:
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.
_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)
jauch888888
DD-WRT User


Joined: 23 Apr 2020
Posts: 101

PostPosted: Wed Dec 22, 2021 0:51    Post subject: Reply with quote
IONK wrote:
jauch888888 wrote:
IONK wrote:
jauch888888 wrote:
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

EASYDDUPARGS="-c -q"
USELOCALMAILSERVER=N
REPEATEDEMAILS=Y

# 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"

yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 371

PostPosted: Wed Dec 22, 2021 0:54    Post subject: Reply with quote
@IONK

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. Very Happy
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 951

PostPosted: Wed Dec 22, 2021 0:57    Post subject: Reply with quote
jauch888888 wrote:
last thing, about emails, IM ok with that?
that looks ok to me. I don't remember having any special security setting my gmail account, but I remember some special characters in the password have to be escaped.
_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 951

PostPosted: Wed Dec 22, 2021 1:07    Post subject: Reply with quote
yoyoma2 wrote:
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. Very Happy
I only attempted to interrupt while it's still downloading the firmware, but once it started burning then I just let it be. I remember if the auto confirm flag in easyddup.ini is not set then it's still possible to quit at the last confirmation prompt before the burn command starts.
_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)


Last edited by IONK on Wed Dec 22, 2021 3:00; edited 1 time in total
jauch888888
DD-WRT User


Joined: 23 Apr 2020
Posts: 101

PostPosted: Wed Dec 22, 2021 1:31    Post subject: Reply with quote
IONK wrote:
jauch888888 wrote:
last thing, about emails, IM ok with that?
that looks ok to me. I don't remember having any special security setting my gmail account, but I remember some special characters in the past



can I test it if the mails working?
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 951

PostPosted: Wed Dec 22, 2021 2:49    Post subject: Reply with quote
jauch888888 wrote:
can I test it if the mails working?
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.

For cron job, remember to add "root" before the command, for example "00 22 * * * root /opt/easyddup/easyddup.sh -r reva". https://wiki.dd-wrt.com/wiki/index.php/CRON
You can write something to a log file to verify that cron job is invoked.

_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 371

PostPosted: Wed Dec 22, 2021 3:20    Post subject: Reply with quote
New version (December 21th).

Changes:

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
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 371

PostPosted: Wed Dec 22, 2021 3:55    Post subject: Reply with quote
@jauch888888

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.
jauch888888
DD-WRT User


Joined: 23 Apr 2020
Posts: 101

PostPosted: Wed Dec 22, 2021 12:22    Post subject: Reply with quote
yoyoma2 wrote:
@jauch888888

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#

IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 951

PostPosted: Wed Dec 22, 2021 12:24    Post subject: Reply with quote
Wrong path, but I don't have time to check at the moment, maybe yoyoma2 can give you more details.
_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)


Last edited by IONK on Wed Dec 22, 2021 12:43; edited 1 time in total
jauch888888
DD-WRT User


Joined: 23 Apr 2020
Posts: 101

PostPosted: Wed Dec 22, 2021 12:38    Post subject: Reply with quote
IONK wrote:
Wrong path, but I don't have time to check at the moment, maybe yoyoma2 can I've you more details.


no problem, but it seems to be the good path

Code:

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# ls
QuickStart.txt                      fwcache
Readme.txt                          jffs-restore.sh
cacert.pem                          nvram-all-202112211931-E142.txt
cacert.txt                          nvram-dd-wrt.ini
check_version                       nvram-excp-dd-wrt.sh
checknewversion.ini                 nvram-ini-202112211931-E142.txt
checknewversion.sh                  nvram-restore-202112211931-E142.sh
cleanupCB.sh                        nvram-restore-latest.sh
clear-maclist.sh                    nvram-restore.sh
easyddup-vars.ini                   nvram-save.sh
easyddup.ini                        nvram-usr-202112211931-E142.txt
easyddup.log                        nvram-util.log
easyddup.sh                         save-mynvram.sh
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#

IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 951

PostPosted: Wed Dec 22, 2021 12:42    Post subject: Reply with quote
for your case, checknewversion.sh: line 8 needs to be
Code:
EASYDDUPDIR=/opt/usr/ddwrt_update/easyddup

_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 371

PostPosted: Wed Dec 22, 2021 15:41    Post subject: Reply with quote
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.
Goto page Previous  1, 2, 3 ... 11, 12, 13 ... 19, 20, 21  Next Display posts from previous:    Page 12 of 21
Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum