User Tools

Site Tools


upgrade_config

This is an old revision of the document!


How-to Keep Router Configuration after an Upgrade

Question

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.

Answer

Yes

Solution

SSH into your router and edit the file /www/utility/do_upgrade.sh

On line 47

change <shell>

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

to

<shell>

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

The only difference is -n

upgrade_config.1369152275.txt.gz · Last modified: 2013/05/21 16:04 by eric