init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
This commit is contained in:
parent
256dc98754
commit
df2daf524d
641 changed files with 140617 additions and 12 deletions
18
ips-dup
Normal file
18
ips-dup
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
START="1"
|
||||
END="254"
|
||||
DEVICE="eth0"
|
||||
BASE_IP="192.168.0."
|
||||
|
||||
i=$START
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "So nicht meister."
|
||||
echo "$0 [up|down]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
while [ $i -lt $END ]; do
|
||||
ifconfig "$DEVICE":"$[i+3]" "$BASE_IP""$i" $1
|
||||
i=$[$i+1]
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue