Skip to content

Instantly share code, notes, and snippets.

@mactkg
Created February 19, 2012 15:55
Show Gist options
  • Save mactkg/1864409 to your computer and use it in GitHub Desktop.
Save mactkg/1864409 to your computer and use it in GitHub Desktop.
#!/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