# HG changeset patch # User Shingo W. Kagami # Date 1264130238 -32400 # Node ID 3473a6fcda663b6cc4cc40e9d19ca8da340a66b9 # Parent 577963cc46fcd92adc2598bc60bd3c94ec536e2b bat files are converted to sh files, and bugs are fixed. diff -r 577963cc46fc -r 3473a6fcda66 net/net_dhcp.bat --- a/net/net_dhcp.bat Fri Jan 22 01:01:29 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -@echo off -netsh interface ip set address "ローカル エリア接続" dhcp -netsh interface ip set dns "ローカル エリア接続" dhcp -netsh interface ip set wins "ローカル エリア接続" dhcp diff -r 577963cc46fc -r 3473a6fcda66 net/net_dhcp.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net/net_dhcp.sh Fri Jan 22 12:17:18 2010 +0900 @@ -0,0 +1,9 @@ +#!/bin/sh + +conn="ローカル エリア接続" +if [ "X$1" = "Xwireless" ]; then + conn="ワイヤレス ネットワーク接続" +fi + +netsh interface ip set address "$conn" dhcp +netsh interface ip set dns "$conn" dhcp diff -r 577963cc46fc -r 3473a6fcda66 net/net_ic.bat --- a/net/net_ic.bat Fri Jan 22 01:01:29 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -@echo off -netsh interface ip set address "ローカル エリア接続" static 10.240.10.207 255.255.255.0 10.240.10.1 1 -netsh interface ip set dns "ローカル エリア接続" static 130.34.54.2 -netsh interface ip add dns "ローカル エリア接続" 130.34.232.25 diff -r 577963cc46fc -r 3473a6fcda66 net/net_ic.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net/net_ic.sh Fri Jan 22 12:17:18 2010 +0900 @@ -0,0 +1,10 @@ +#!/bin/sh + +conn="ローカル エリア接続" +if [ "X$1" = "Xwireless" ]; then + conn="ワイヤレス ネットワーク接続" +fi + +netsh interface ip set address "$conn" static 10.240.10.207 255.255.255.0 10.240.10.1 1 +netsh interface ip set dns "$conn" static 130.34.54.2 +netsh interface ip add dns "$conn" 130.34.232.25