Created
February 19, 2012 15:55
-
-
Save mactkg/1864409 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -x | |
SSID=`/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | grep -w SSID | tr -d "[:blank:]" | cut -c 6-` | |
echo "SSID:"$SSID | |
if [ $SSID = "ここにSSIDいれる" ] || [ $SSID = "もし2つ目のSSIDとかあったら使って下さい" ] | |
then | |
export HTTP_PROXYとかここでいれる | |
else | |
export HTTP_PROXYを空にする手続きをやる | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment