improve tests for macos x and for when offline
parent
f6f16b9202
commit
0114c307ee
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# only do this on Mac OS X
|
||||
if [ `uname -s` != "Darwin" ]; then
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
if [[ ! `ifconfig lo0` =~ 127\.0\.0\.2 ]]; then
|
||||
sudo ifconfig lo0 127.0.0.2/8 alias
|
||||
sudo ifconfig lo0 127.0.0.3/8 alias
|
||||
sudo ifconfig lo0 127.0.0.4/8 alias
|
||||
sudo ifconfig lo0 127.0.0.5/8 alias
|
||||
fi
|
Loading…
Reference in New Issue