#!/bin/bash

modprobe eth1
iwconfig eth1 key 0123456789

started=0

if /etc/init.d/net.eth1 status | grep "started" >/dev/null ; then
	started=1
fi

if test "${started}" = "0" ; then
	/etc/init.d/net.eth1 start
fi