#!/bin/sh
# test only script for network settings
# extend on your needs

/etc/init.d/S40network stop
/etc/init.d/S29netplug stop

awk -f /usr/bin/changeInterface.awk  /etc/network/interfaces\
 device=eth0 mode=static\
 gateway=\
 address=$1\
 dns=192.168.0.1\
 netmask=255.255.255.0\
 action=add\
 >/etc/network/interfaces

/etc/init.d/S29netplug start
/etc/init.d/S40network start
