Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

clever
Sunday, May 13th, 2007 at 8:15:30am UTC 

  1. #!/bin/bash
  2. date
  3. if  `lspci|grep 06:00.0 -q`; then
  4.         echo "C600?"
  5.         if `iwlist wlan0 scan|grep ESSID|grep -q Family` ; then
  6.                 echo "loading rtl wifi for the house on c600"
  7.                 /root/bin/starthomewifi
  8.         else
  9.                 echo 2
  10.         fi
  11. else
  12.         echo "D600?"
  13.         if `iwlist eth2 scan|grep ESSID|grep -q Family`; then
  14.                 echo "loading intel wifi for the house on d600"
  15.                 ifdown eth2
  16.                 iwconfig eth2 mode managed
  17.                 iwconfig eth2 essid Family
  18.                 iwconfig eth2 key THEWEPKEY
  19.                 ip link set eth2 up
  20.                 ip addr add 192.168.1.102/32 broadcast 192.168.1.255 dev eth2
  21.                 #ip route delete 192.168.1.0/24 dev eth0
  22.                 ip route add 192.168.1.0/24 dev eth2
  23.                 ip route add dev eth2 via 192.168.1.1
  24.         else
  25.                 echo 2
  26.         fi
  27. fi
  28. tput bel > /dev/console
  29. sleep 1
  30. 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.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

comments powered by Disqus
worth-right
worth-right