#!/bin/sh ifdown eth0 iwconfig eth0 mode managed #you need to adjust this: iwconfig eth0 essid YOUR_NETWORK_ESSID_HERE #you need to adjust this: iwconfig eth0 key [1] YOUR_WEP_KEY iwconfig eth0 rate auto ifup eth0