Rose-Hulman Robotics Team

Changeset 519

Show
Ignore:
Timestamp:
06/05/09 14:19:45 (3 years ago)
Author:
mosttw
Message:

Updated scripts for new IP addresses

Location:
trunk/software/scripts
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/software/scripts/wireless.sh

    r429 r519  
    33# as an argument. 
    44 
    5 ifconfig $1 down 
    6 iwconfig $1 mode 'Ad-Hoc' essid 'RHRT' channel 1 
    7 ifconfig $1 up 
    8 ifconfig $1 192.168.1.2 
     5if [ -n "$1" ]; then 
     6  ifconfig $1 down 
     7  iwconfig $1 mode 'Ad-Hoc' essid 'RHRT' channel 1 
     8  ifconfig $1 up 
     9  ifconfig $1 192.168.0.2 
     10else 
     11  echo "Please specify an interface (like wlan0)" 
     12fi