if [ "$reason" = PREINIT -a -e "$mtu_dir/$interface" ]; then
rm "$mtu_dir/$interface"
-elif [ -n "$new_interface_mtu" ]; then
+elif [ "$reason" != TEST -a -n "$new_interface_mtu" ]; then
# The smalled MTU dhcpcd can work with is 576
if [ "$new_interface_mtu" -ge 576 ]; then
if ifconfig "$interface" mtu "$new_interface_mtu"; then
fi
fi
fi
-elif [ -e "$mtu_dir/$interface" ]; then
+elif [ "$reason" != TEST -a -e "$mtu_dir/$interface" ]; then
# No MTU in this state, so restore the prior MTU
mtu=$(cat "$mtu_dir/$interface")
syslog info "$interface: MTU restored to $mtu"