net/net_dhcp.sh
author Shingo W. Kagami
Sun, 31 Jan 2010 02:58:12 +0900
changeset 3 cce8365a9d50
permissions -rw-r--r--
Add winactivate.vbs.
Shingo@2
     1
#!/bin/sh
Shingo@2
     2
Shingo@2
     3
conn="ローカル エリア接続"
Shingo@2
     4
if [ "X$1" = "Xwireless" ]; then
Shingo@2
     5
    conn="ワイヤレス ネットワーク接続"
Shingo@2
     6
fi
Shingo@2
     7
Shingo@2
     8
netsh interface ip set address "$conn" dhcp
Shingo@2
     9
netsh interface ip set dns "$conn" dhcp