mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Add files via upload
This commit is contained in:
parent
662b8a6a44
commit
4e0a12bd55
19
OSX/jumboframes-osx.sh
Normal file
19
OSX/jumboframes-osx.sh
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
echo "Config for jumbo frames 9000"
|
||||
ifconfig en0 mtu 9000
|
||||
else
|
||||
echo "Config for std frames 1500"
|
||||
ifconfig en0 mtu 1500
|
||||
fi
|
||||
|
||||
echo "$(date) - Waiting for interface to come back online"
|
||||
result=1
|
||||
while [ $result -gt 0 ]; do
|
||||
result=$(ifconfig en0 |grep -c inactive)
|
||||
sleep .5
|
||||
done
|
||||
|
||||
date
|
||||
ifconfig en0
|
Loading…
x
Reference in New Issue
Block a user