Page 1 of 2

remember config after upgrade

Posted: Sat Oct 29, 2011 3:03 pm
by hnl_dk
Is there any reason why it is not possible for Gargoyle to remember its configuration after an upgrade?
It is possible on almost all firmware (including openwrt). This would make the upgrade process so much more pleasant.

working hack/solution here: Subject: remember config after upgrade

Re: remember config after upgrade

Posted: Sat Oct 29, 2011 4:07 pm
by b0rg
There is a backup/restore function that does just that. Before update you save a backup (which is just your settings), then after update is complete you restore from it. All settings remain as they were.

Re: remember config after upgrade

Posted: Sat Oct 29, 2011 4:14 pm
by hnl_dk
b0rg wrote:There is a backup/restore function that does just that. Before update you save a backup (which is just your settings), then after update is complete you restore from it. All settings remain as they were.
I know, but it is not the same... you still have a lot of trouble when:
1. You run on another subnet...
2. You primarily work wireless on that router/AP...

Re: remember config after upgrade

Posted: Sat Oct 29, 2011 4:25 pm
by pbix
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.

Re: remember config after upgrade

Posted: Sat Oct 29, 2011 6:43 pm
by hnl_dk
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:

Re: remember config after upgrade

Posted: Sat Oct 29, 2011 6:44 pm
by hnl_dk
it would be nice if it could be selected as an option, it you fear that it will not work on all routers.

Re: remember config after upgrade

Posted: Sun Oct 30, 2011 4:17 am
by hnl_dk
hnl_dk wrote:...
So far it looks like it has remembered all settings, even my syslog settings :mrgreen:
I have double-checked everything and the only setting that seems to be missing from the old settings, is the hostname of the router.
But a funny thing, the domainname has been remembered.

Re: remember config after upgrade

Posted: Sun Oct 30, 2011 4:30 am
by behappy
Hi hnl_dk,

What do you mean all settings? Are they all files under etc folder or only etc/config?

Re: remember config after upgrade

Posted: Sun Oct 30, 2011 4:42 am
by hnl_dk
behappy wrote:Hi hnl_dk,

What do you mean all settings? Are they all files under etc folder or only etc/config?
no, all the settings that I have made within the gargoyle webinterface.
If you also want to make it try to safe every chance in /etc, you should add -c to the line... but I see no reason to do that, at least if you use the webinterface.

Re: remember config after upgrade

Posted: Mon Oct 31, 2011 8:11 am
by hnl_dk
hnl_dk wrote:it would be nice if it could be selected as an option, it you fear that it will not work on all routers.
Perhaps it could added that if you use the options, that it is recommended to use the restore afterwards... just in case it is not everything that is "remembered"... at least this will at least remember the ip address, subnet and wifi settings, so you are still able to access the router after you have made the upgrade.

So far it is still only the hostname that has not been remembered here... but I am for example not using qos and also some other features.