Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: dhcpcd-hooks/10-mtu

Issue 2428004: Overhaul dhcpcd for chrome os use (Closed) Base URL: ssh://git@chromiumos-git//dhcpcd.git
Patch Set: purge hooks from configure to silence complaint Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dhcpcd-hooks/01-test ('k') | dhcpcd-hooks/20-resolv.conf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dhcpcd-hooks/10-mtu
diff --git a/dhcpcd-hooks/10-mtu b/dhcpcd-hooks/10-mtu
deleted file mode 100644
index 3f6e1750b2ab9422e335bbb4af361802c0b982af..0000000000000000000000000000000000000000
--- a/dhcpcd-hooks/10-mtu
+++ /dev/null
@@ -1,25 +0,0 @@
-# Configure the MTU for the interface
-
-mtu_dir="$state_dir/mtu"
-
-if [ "$reason" = PREINIT -a -e "$mtu_dir/$interface" ]; then
- rm "$mtu_dir/$interface"
-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
- syslog info "$interface: MTU set to $new_interface_mtu"
- # Save the MTU so we can restore it later
- if [ ! -e "$mtu_dir/$interface" ]; then
- mkdir -p "$mtu_dir"
- echo "$ifmtu" > "$mtu_dir/$interface"
- fi
- fi
- fi
-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"
- ifconfig "$interface" mtu "$mtu"
- rm "$mtu_dir/$interface"
-fi
« no previous file with comments | « dhcpcd-hooks/01-test ('k') | dhcpcd-hooks/20-resolv.conf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698