Joined: 24 Feb 2009 Posts: 2026 Location: Sol System > Earth > USA > Arkansas
Posted: Sun Jul 26, 2009 23:30 Post subject:
If you are not using ftp/curl, then installing it would be pointless (as you are not using it). In addition, if you do not set the options for it, curl will not try to ftp anyway. _________________ E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]
Try Dropbox for syncing files - get 2.5gb online for free by signing up.
Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
Posted: Tue Aug 04, 2009 2:04 Post subject: Worked for me v23sp2 -> latest Eko!
Just an FYI: I used the files uploaded by hardwarewizard on Sun Jul 26, 2009 8:54 pm to do a backup from v23 SP2 and restore on Eko's latest nokaid (dd-wrt.v24-12548_VINT_std-nokaid.bin), using a WRT54G v1.0 and it worked well! I also did a backup and restore from Eko's latest build in different flavors (I think from Mega to nokaid, but not sure) on a WRT54GS v1.0. So far looking great--and this is much easier than going through each page with a PDF of the old settings.
The only things I changed in the script were the variables:
FOLDER=/tmp/
VARFILE=/tmp/all_vars
And then I scp'd the files to /tmp/ on the router. I did chmod and executed the script without the "-t" option so the resulting files were saved to /tmp/ and I then scp'd them back to my laptop. To do the restore, I enabled SSH, scp'd the .essential.sh script back to /tmp/ and ran it.
I think this is excellent for upgrades--if it weren't for the recent vulnerability I definitely would not have upgraded because of the hassle. Finding this makes it much easier. Thanks to everyone who made this!
Posted: Fri Aug 07, 2009 1:08 Post subject: Re: Worked for me v23sp2 -> latest Eko!
bpeyser wrote:
Just an FYI: I used the files uploaded by hardwarewizard on Sun Jul 26, 2009 8:54
The only things I changed in the script were the variables:
FOLDER=/tmp/
VARFILE=/tmp/all_vars
-bpeyser
I followed what you did bpeyser and I have to say that hardwardwizard nailed the 2 settings I was originally having to check after reloading the essential.sh. Thanks!
And thanks to ALL who made this script happen! _________________ WRT1900AC v1-build r30731
Joined: 24 Feb 2009 Posts: 2026 Location: Sol System > Earth > USA > Arkansas
Posted: Fri Aug 07, 2009 3:25 Post subject:
Your "FOLDER" variable can be specified to whatever is convenient to each individual user. Mine is pointed to '/tmp/root' since that is the default directory when one telnets or sshs into the router. And thanks to the customizability that frater built into the script, it *does* work wonders. _________________ E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]
Try Dropbox for syncing files - get 2.5gb online for free by signing up.
Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
Posted: Fri Aug 07, 2009 11:09 Post subject: Re: Worked for me v23sp2 -> latest Eko!
bpeyser wrote:
Just an FYI: I used the files uploaded by hardwarewizard on Sun Jul 26, 2009 8:54 pm to do a backup from .......
I think this is excellent for upgrades--if it weren't for the recent vulnerability I definitely would not have upgraded because of the hassle. Finding this makes it much easier. Thanks to everyone who made this!
-bpeyser
I followed much the same path as bpeyser when upgrading from build 12188 to 12615. With exception of static lease information, all information updated accordingly.
For some reason the correct number of static fields were created but data that should have been imported to them was not. The required data is contained in the script as I was able to cut and paste from the script to the static lease fields. Could this have something to do with the order in whcich the (essentials) script restore the data?
Posted: Fri Aug 07, 2009 13:04 Post subject: Re: Worked for me v23sp2 -> latest Eko!
rcblackwell wrote:
For some reason the correct number of static fields were created but data that should have been imported to them was not. The required data is contained in the script as I was able to cut and paste from the script to the static lease fields. Could this have something to do with the order in whcich the (essentials) script restore the data?
Normally I would say no...
But we all saw now how variables are overwritten when other variables are set. My quick-and-dirty fix just changed the the order in which they are written.
So you were able to solve it by just a copy-paste of the "nvram set static_leases=" line?
I just did a little test and changed "static_leasenum" to 0 but it didn't (nor should) overwrite static_leases... It may be another variable.... _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Mon Aug 24, 2009 16:36 Post subject:
After using for a while, I noticed something. The dangerous.sh isn't getting any vars writen to it. Is this just on my machine? _________________ The New Me
Joined: 24 Feb 2009 Posts: 2026 Location: Sol System > Earth > USA > Arkansas
Posted: Mon Aug 24, 2009 17:28 Post subject:
Do you have the "vars_to_skip" file next to the script? If not, that may be a reason why the script is not creating a "dangerous.sh" file. _________________ E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]
Try Dropbox for syncing files - get 2.5gb online for free by signing up.
Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Tue Aug 25, 2009 22:13 Post subject:
voldemar wrote:
DHC_DarkShadow wrote:
crashfly wrote:
Do you have the "vars_to_skip" file next to the script? If not, that may be a reason why the script is not creating a "dangerous.sh" file.
Yes they are in the same dir. I was using RjG's version before I switch to hardwarewizard/frater updated script.
There are 0D 0A bytes between lines in the vars_to skip file. Could it be the problem?
I am using the vars_to_skip files that are with the script files respectively. So i don't think that would be the problem.
I'm Probably gonna have to wait till frater or hardwarewizard gets on to see if they can help me figure it out
EDIT: Scratch that, voldemar you were right, there was an extra line in the vars_to_skip file that was blank. Took out the line and it works great. Also and s was missing from the backupvars.sh the script in the wiki is corrected. _________________ The New Me
I deliberately didn't interfere because voldemar had a point and it was interesting to see how my code was discussed.
That file is fed to "grep" and they are in fact general expressions. It is important this file is exactly the same. Programs like notepad can spoil this. _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Wed Aug 26, 2009 10:07 Post subject:
frater wrote:
I deliberately didn't interfere because voldemar had a point and it was interesting to see how my code was discussed.
That file is fed to "grep" and they are in fact general expressions. It is important this file is exactly the same. Programs like notepad can spoil this.
Is there a proggy you recommend for script editing? _________________ The New Me