mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
20 lines
339 B
Bash
20 lines
339 B
Bash
#!/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
|