]> git.stg.codes - stg.git/blob - projects/sgauthstress/rmifs.sh
Empty lines removed from the end of the file
[stg.git] / projects / sgauthstress / rmifs.sh
1 #!/bin/bash
2
3 users=`cat users.1000`
4 hi=0
5 lo=0
6 for user in $users
7 do
8     cp -R /var/stargazer/users/test /var/stargazer/users/$user
9     if (( $lo > 254 ))
10     then
11         lo=0
12         let hi++
13     fi
14     let lo++
15     ip="10.22.$hi.$lo/32"
16     ip addr del $ip dev eth0
17 done