]> git.stg.codes - stg.git/blob - projects/sgauthstress/mkifs.sh
Merge branch 'fix-gts-auth-errors' into full-month-stats
[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