On 05/08/10 17:33, Mark Rogers wrote:
OK, I've been saving this until I have time to try this, but I'm a bit out of my depth...
Nothing like a bit of trial and error....
This seems to work as a script (well it did when I remembered to chmod +x it!)
#!/bin/sh set -e if [ "$IFACE" = eth0 ] ; then sudo ifconfig $IFACE add 192.168.20.117 netmask 255.255.255.0 fi