This commit is contained in:
Edward Hope-Morley 2015-02-11 15:52:22 +00:00
parent 977581b761
commit 7d249d8245

View File

@ -13,8 +13,8 @@ script
while read -r dev; do
[ -n "$dev" ] || continue
rc=0
# Try all devices before exiting with error
ip link set $dev mtu $mtu || rc=$?
[ $rc = 0 ] || break
done < $tmpfile
rm $tmpfile
[ $rc = 0 ] || exit $rc