Posted: Tue Jul 20, 2010 20:32 Post subject: Optware - How to install or restore after firmware upgrade?
I installed Optware on my WNR-3500L which was really easy. But what if I upgrade the firmware at a later date or reset the system? The script does take almost 20 minutes to download all the packages and install them. I'd rather find a way to re-use the Optware installation on my USB drive and 'reactivate' it within DD-WRT.
So I need a way to setup the following on a fresh DD-WRT:
- When booting it has to mount the file systems (/opt and /mnt) and use the swap partition.
- It has to install all services so they start at boot.
- It has to add the PATH environment variable to include all the necessary optware paths.
... and maybe more things that I forgot. Is there a script available that does this? Thanks!
Last edited by okki on Wed Jul 21, 2010 1:06; edited 2 times in total
if optware is installed to an external drive (usb) then when settings are reset all you need to do is enable usb support in services, and select the mount point as /opt/ apply and reboot
Really? I didn't expect it to be so simple! But what happens upon reboot then? Is it a script that is started by the firmware that mounts the optware partition and starts services and all? I don't have to fill in anything in "Run-on-mount Script Name", do I? So how does it work?
Joined: 24 Feb 2009 Posts: 2026 Location: Sol System > Earth > USA > Arkansas
Posted: Tue Jul 20, 2010 23:20 Post subject:
Installing/restoring optware on an upgraded firmware *is* as simple as setting your mount point. Like many linux distros, there is a directory with 'startup' scripts that are executed on the mount point being mounted. If you are using frater's "Optware the Right Way", everything will be ready for that first mount. If you installed optware the "old fashioned way", there are paths to the correct locations assuming the mount point is set correctly. Upgrading your firmware could not be simpler. _________________ 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.
Thanks, I think I get it now. So when booting it is set to automatically mount the first partition it finds (?) to /opt, according to the 'Disk Mount Point' setting in the web interface. And then another script looks to find the /opt folder, and if found it will load optware and all its packages.
Is that how it goes? Or at least a little bit?
Oh and one more thing - what happens if I take out my USB drive? I guess I shouldn't do that... but is it OK to do it when the router is powered down? So that when it boots it works just like an 'Optware-less' device?
All your assumptions are correct....
You do need a recent firmware. _________________ 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