diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-06 22:40:01 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-06 22:40:01 (GMT) |
commit | d5ccb59c22a22b9b1bb0d340dd2549aa3121ec41 (patch) | |
tree | 97a1512737cc2775bec6e8dc86fec9cb388f1e21 /abs/core/dhcpcd/remove_ifconfig.patch | |
parent | 241a1411928c891578a7e365c095775f2040c3f0 (diff) | |
download | linhes_pkgbuild-d5ccb59c22a22b9b1bb0d340dd2549aa3121ec41.zip linhes_pkgbuild-d5ccb59c22a22b9b1bb0d340dd2549aa3121ec41.tar.gz linhes_pkgbuild-d5ccb59c22a22b9b1bb0d340dd2549aa3121ec41.tar.bz2 |
dhcpcd: 5.5.6
Diffstat (limited to 'abs/core/dhcpcd/remove_ifconfig.patch')
-rw-r--r-- | abs/core/dhcpcd/remove_ifconfig.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/abs/core/dhcpcd/remove_ifconfig.patch b/abs/core/dhcpcd/remove_ifconfig.patch new file mode 100644 index 0000000..5bcc4a6 --- /dev/null +++ b/abs/core/dhcpcd/remove_ifconfig.patch @@ -0,0 +1,20 @@ +--- dhcpcd-hooks/10-mtu.orig 2011-11-04 07:45:46.477712667 +0100 ++++ dhcpcd-hooks/10-mtu 2011-11-04 07:46:38.964379550 +0100 +@@ -7,7 +7,7 @@ + elif [ -n "$new_interface_mtu" ] && $if_up; 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 ++ if ip link set "$interface" mtu "$new_interface_mtu"; then + syslog info "$interface: MTU set to $new_interface_mtu" + # Save the MTU so we can restore it later + if [ ! -e "$mtu_dir/$interface" ]; then +@@ -21,7 +21,7 @@ + # No MTU in this state, so restore the prior MTU + mtu=$(cat "$mtu_dir/$interface") + syslog info "$interface: MTU restored to $mtu" +- ifconfig "$interface" mtu "$mtu" ++ ip link set "$interface" mtu "$new_interface_mtu" + rm "$mtu_dir/$interface" + fi + fi |