From b853c8a82361af7ee1a35c1e0ab0d5e627d2b029 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 29 Sep 2018 14:39:25 -0400 Subject: propellor spin --- src/Propellor/Property/SiteSpecific/JoeySites.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Propellor/Property/SiteSpecific/JoeySites.hs') diff --git a/src/Propellor/Property/SiteSpecific/JoeySites.hs b/src/Propellor/Property/SiteSpecific/JoeySites.hs index e9eb0d5e..33707aef 100644 --- a/src/Propellor/Property/SiteSpecific/JoeySites.hs +++ b/src/Propellor/Property/SiteSpecific/JoeySites.hs @@ -1076,6 +1076,7 @@ homeRouter = propertyList "home router" $ props [ "domain-needed" , "bogus-priv" , "interface=" ++ homerouterWifiInterface + , "interface=eth0" , "domain=kitenet.net" -- lease time is short because the homepower -- controller wants to know when clients disconnect @@ -1086,7 +1087,9 @@ homeRouter = propertyList "home router" $ props ] `onChange` Service.restarted "dnsmasq" & ipmasq homerouterWifiInterface - & Apt.serviceInstalledRunning "netplug" + -- 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 -- cgit v1.2.3