]> git.stg.codes - stg.git/blob - projects/sgauthstress/rmifs.sh
Set LC_NUMERIC to C, changes service serialization format.
[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     if (( $lo > 254 ))
9     then
10         lo=0
11         let hi++
12     fi
13     let lo++
14     ip="10.22.$hi.$lo/32"
15     ip addr del $ip dev eth0
16 done