mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* restore .gitmodules * Revert "[TD-13408]<test>: move tests out" This reverts commitf80a4ca49f. * revertf80a4ca49f* immigrate file change from stand-alone repo to TDengine for 3.0 * remove tests repository for Jenkinsfile2 Co-authored-by: tangfangzhi <fztang@taosdata.com>
33 lines
575 B
Bash
Executable file
33 lines
575 B
Bash
Executable file
#!/bin/sh
|
|
|
|
#already create real card, such as 192.168.0.1-5
|
|
#exit 0
|
|
|
|
if [ $# != 4 ]; then
|
|
echo "argument list need input : "
|
|
echo " -i if use [192.168.0.70 ] then input [70]"
|
|
echo " -s up/down"
|
|
exit 1
|
|
fi
|
|
|
|
#just create ip like 192.168.0.*
|
|
|
|
IP_ADDRESS=
|
|
EXEC_OPTON=
|
|
while getopts "i:s:" arg
|
|
do
|
|
case $arg in
|
|
i)
|
|
IP_ADDRESS=$OPTARG
|
|
;;
|
|
s)
|
|
EXEC_OPTON=$OPTARG
|
|
;;
|
|
?)
|
|
echo "unkonw argument"
|
|
;;
|
|
esac
|
|
done
|
|
|
|
echo ============ $EXEC_OPTON $IP_ADDRESS ===========
|
|
sudo ifconfig lo:$IP_ADDRESS 192.168.0.$IP_ADDRESS $EXEC_OPTON
|