From 4af41ca3219f6e0a6f41e94fcaaad9bebd9c7254 Mon Sep 17 00:00:00 2001 From: Christoph Glaubitz Date: Tue, 29 Jan 2013 23:09:31 +0100 Subject: [PATCH] added dependency to the WIRELESS_INTERFACE since net-auto-wireless.service will not start on boot, if WIRELESS_INTERFACE is not available yet, I extended net-auto-wireless.service to only start if the interface is available. --- systemd/net-auto-wireless.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systemd/net-auto-wireless.service b/systemd/net-auto-wireless.service index 81f2369..b96a9d1 100644 --- a/systemd/net-auto-wireless.service +++ b/systemd/net-auto-wireless.service @@ -7,6 +7,8 @@ Wants=network.target EnvironmentFile=/etc/conf.d/netcfg ExecStart=/usr/bin/netcfg-wpa_actiond $WIRELESS_INTERFACE ExecStop=/usr/bin/netcfg-wpa_actiond stop $WIRELESS_INTERFACE +BindsTo=sys-subsystem-net-devices-${WIRELESS_INTERFACE}.device +After=sys-subsystem-net-devices-${WIRELESS_INTERFACE}.device RemainAfterExit=yes Type=forking -- 1.8.1.1