]> git.stg.codes - stg.git/blob - projects/sgauthstress/rmifs.sh
Ticket 37. TariffChangelsAllowed function name changed to
[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