File: osx-extra-loopback.sh

package info (click to toggle)
sbws 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,084 kB
  • sloc: python: 10,432; sh: 146; makefile: 38
file content (8 lines) | stat: -rwxr-xr-x 234 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
#!/bin/bash
# The test networks for sbws use IP addresses in the 127.10/16 space and OS X
# only seems to give lo0 127.0.0.1/32. This adds 127.10.0.1-20 to lo0.
for ((i=1;i<20;i++))
do
    sudo ifconfig lo0 alias 127.10.0.$i up
done