ansitest/OSX/jumboframes-osx.sh
2022-06-21 11:40:38 -05:00

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