remember config after upgrade

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: remember config after upgrade

Post by hnl_dk »

hnl_dk wrote:
pbix wrote:I have spent a good part of the last month trying add this feature to Gargoyle.

I have found this to be difficult. I know OpenWRT claims such functionality and have tried to use OpenWRT utilities it with Gargoyle. However, I have found these utilities unreliable at least on the routers I have worked with.

So at this point until someone smarter than me can explain the inner workings of OpenWRT's sysupgrade script I am not hopeful we will see this in Gargoyle.
Hello
Did not think of that.
/www/utility/do_upgrade.sh
change line 47

Code: Select all

		/sbin/sysupgrade -n /tmp/up/upgrade  2>&1 | awk ' $0 ~ /eboot/ { print "<script type=\"text/javascript\">top.upgraded();</script></body></html>" ; } '
into

Code: Select all

		/sbin/sysupgrade /tmp/up/upgrade  2>&1 | awk ' $0 ~ /eboot/ { print "<script type=\"text/javascript\">top.upgraded();</script></body></html>" ; } '
I have now tested it on both my two routers (gateway and AP) - both tl-wr1043nd.
So far it looks like it has remembered all settings, even my syslog settings :mrgreen:
Have now also modified it on 1.5.0, so now I am ready to upgrade to the next version, when it gets released.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

bjland2
Posts: 1
Joined: Wed Nov 30, 2011 11:43 pm

Re: remember config after upgrade

Post by bjland2 »

I have met the same problem, have you solved it yet? how do you solve it?

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: remember config after upgrade

Post by hnl_dk »

bjland2 wrote:I have met the same problem, have you solved it yet? how do you solve it?
This hack is the solution: Subject: remember config after upgrade
But remember to mack a backup before doing so, just to make sure.

The problem is that Gargoyle has disabled this feature, so by removing a simple '-n' in the line, does is work again.

The only problem I have has with this, was that it did reset the name of the routers. That was easy to fix, so I did not even care to restore the backup.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

wkweksl
Posts: 15
Joined: Sun Sep 25, 2011 9:20 pm

Re: remember config after upgrade

Post by wkweksl »

This is a nice feature to have. Made the change and will see if it keeps all settings in the next upgrade.
TP-Link WR-1043ND 1.8 - Gargoyle 1.5.6

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: remember config after upgrade

Post by hnl_dk »

wkweksl wrote:This is a nice feature to have. Made the change and will see if it keeps all settings in the next upgrade.
But remember to take the backup anyway, just to make sure.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

wkweksl
Posts: 15
Joined: Sun Sep 25, 2011 9:20 pm

Re: remember config after upgrade

Post by wkweksl »

hnl_dk, you rock! Just upgraded to 1.5.2 with all settings intact.
TP-Link WR-1043ND 1.8 - Gargoyle 1.5.6

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: remember config after upgrade

Post by hnl_dk »

wkweksl wrote:hnl_dk, you rock! Just upgraded to 1.5.2 with all settings intact.
Perfect.
But remember also to make the change for the next update.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

wkweksl
Posts: 15
Joined: Sun Sep 25, 2011 9:20 pm

Re: remember config after upgrade

Post by wkweksl »

hnl_dk wrote:Perfect.
But remember also to make the change for the next update.
Oh? You mean the file was overwritten after the upgrade? Will edit it. Thanks.
TP-Link WR-1043ND 1.8 - Gargoyle 1.5.6

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: remember config after upgrade

Post by hnl_dk »

wkweksl wrote:
hnl_dk wrote:Perfect.
But remember also to make the change for the next update.
Oh? You mean the file was overwritten after the upgrade? Will edit it. Thanks.
Yes it is.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

Post Reply