WGET


Administration scripts as the one that reboots a phone here access the devices via http. So, wget or curl can be used. Under normal circumstances, to control a device some user/password strings have to be passed. Those user/password strings frequently run over the network in clear text which is not a problem in a private environment. It is furthermore not common practice that SOHO devices support traffic encryption. Hence, having SSL or even not is not really important in many cases. But, a problem here is that the wget on DD-WRT based systems that comes with the BusyBox does not support the --user and --password arguments. That problem has to be solved. The solution is to install a full-featured wget from somewhere else and store it under /jffs/usr/bin.
For a system

  Linksys WRT54GL v1.1 running DD-WRT v24-sp2 (08/07/10) mini - build 14896

there is a package available under www.timpinkawa.net/ddwrt/wget.html. Download that package via

  wget http://www.timpinkawa.net/ddwrt/ipkg/wget_1.11-4_mipsel.ipk

or download a copy wget_1.11-4_mipsel.ipk from here.
For a system

  Gateworks GW2358-4 running DD-WRT v24-sp2 (12/14/11) std - build 18007

there is a package available under downloads.openwrt.org/snapshots/trunk/ixp4xx/packages/. Download that package via

  wget http://downloads.openwrt.org/snapshots/trunk/ixp4xx/packages/wget-nossl_1.13.4-1_ixp4xx.ipk

or download a copy wget-nossl_1.13.4-1_ixp4xx.ipk from here.
Once downloaded, install the package, or simply unpack it on any host through

  gzip -dc wget*.ipk > package.tar
  tar xf package.tar
  tar xzf data.tar.gz
  mv usr/bin/wget* wget
  chmod 755 wget
  rm -fr control.tar.gz data.tar.gz debian-binary package.tar usr

in a temporary directory and move the resulting wget manually to the right place.
If for whatever reason a wget with SSL is required on a GW2358-4 board, then copy the script InstallWgetSsl onto the router and execute it simply.
Pay attention, the script /jffs/usr/bin/EatonNmc66102Reboot requires SSL since Countryside VoIP Setup 2.3 2012-12-29.
If /jffs/usr/bin/UpdateLdSoCache was properly declared in Administration->Commands->Diagnostics->Startup, as recommended, then the shared libraries should be available after the next reboot, or, immediately after a manual execution of /jffs/usr/bin/UpdateLdSoCache. In addition, the OpenSSH client suite is sometimes required. That suite needs the same shared libraries as wget-ssl. So the installation is quite simple. The script InstallOpenSshClient can be copied onto the router and can be executed there. But keep in mind, running InstallOpenSshClient without running InstallWgetSsl is not a good idea.


Sat, 29 Dec 2012 01:53:49 +0100
Stephan K.H. Seidl