#!/bin/sh # getlinksyswanip bash script copyright 2005 roqet - http://www.roqet.org. # getlinksyswanip can be distributed and modified under the terms of the # GNU General Public License: http://www.gnu.org/copyleft/gpl.html # ~~~ # 'l' # - lynx -auth=\ 'USERNAME\:PASSWORD' http://192.168.1.1/Status.htm -dump | sed "1,/WAN/d" | awk -F: '/IP Address/{print $2}'