git.stg.codes
/
stg.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
scriptexecuter become a plain C library
[stg.git]
/
projects
/
sgauthstress
/
mkifs.sh
1
#!/bin/bash
2
3
users=`cat users.1000`
4
hi=0
5
lo=0
6
for user in $users
7
do
8
if (( $lo > 254 ))
9
then
10
lo=0
11
let hi++
12
fi
13
let lo++
14
ip="10.22.$hi.$lo"
15
ip addr add $ip dev eth0
16
done