Advertising
- clever
- Sunday, May 13th, 2007 at 8:15:30am UTC
- #!/bin/bash
- date
- if `lspci|grep 06:00.0 -q`; then
- echo "C600?"
- if `iwlist wlan0 scan|grep ESSID|grep -q Family` ; then
- echo "loading rtl wifi for the house on c600"
- /root/bin/starthomewifi
- else
- echo 2
- fi
- else
- echo "D600?"
- if `iwlist eth2 scan|grep ESSID|grep -q Family`; then
- echo "loading intel wifi for the house on d600"
- ifdown eth2
- iwconfig eth2 mode managed
- iwconfig eth2 essid Family
- iwconfig eth2 key THEWEPKEY
- ip link set eth2 up
- ip addr add 192.168.1.102/32 broadcast 192.168.1.255 dev eth2
- #ip route delete 192.168.1.0/24 dev eth0
- ip route add 192.168.1.0/24 dev eth2
- ip route add dev eth2 via 192.168.1.1
- else
- echo 2
- fi
- fi
- tput bel > /dev/console
- sleep 1
- tput bel > /dev/console
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.