From d616ba7cbceff43992a72537d66542e4c08fe284 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 19 Jul 2019 10:03:37 -0400 Subject: propellor spin --- src/Propellor/Property/SiteSpecific/JoeySites.hs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Propellor/Property/SiteSpecific/JoeySites.hs b/src/Propellor/Property/SiteSpecific/JoeySites.hs index 8e3f1fbb..c132fa78 100644 --- a/src/Propellor/Property/SiteSpecific/JoeySites.hs +++ b/src/Propellor/Property/SiteSpecific/JoeySites.hs @@ -1083,16 +1083,19 @@ homeRouter = propertyList "home router" $ props ] `onChange` Service.restarted "dnsmasq" & ipmasq homerouterWifiInterface - -- Used to bring down eth0 when satellite is off, which causes ppp - -- to start, but I am not using this currently. - & Apt.removed ["netplug"] & Network.static' "eth0" (IPv4 "192.168.1.100") (Just (Network.Gateway (IPv4 "192.168.1.1"))) -- When satellite is down, fall back to dialup [ ("pre-up", "poff -a || true") , ("post-down", "pon") + -- ethernet autonegotiation with satellite receiver + -- sometimes fails + , ("ethernet-autoneg", "off") + , ("link-speed", "100") + , ("link-duplex", "full") ] `requires` Network.cleanInterfacesFile + `requires` Apt.installed ["ethtool"] & Apt.installed ["ppp"] `before` File.hasContent "/etc/ppp/peers/provider" [ "user \"joeyh@arczip.com\"" -- cgit v1.2.3