From 454d7b63d70895ca8278c439ce75775d58c9ed6f Mon Sep 17 00:00:00 2001 From: Jouke Witteveen Date: Sun, 30 Dec 2012 17:59:57 +0100 Subject: Forgotten lines on automatic connection scripts - The services now bind to their interfaces correctly. - Documentation of ExcludeAuto is added. --- docs/netctl.profile.5.txt | 4 ++++ services/netctl-auto@.service | 1 + services/netctl-ifplugd@.service | 1 + src/lib/auto.action | 1 - 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/netctl.profile.5.txt b/docs/netctl.profile.5.txt index 6c3c4a7..01b6256 100644 --- a/docs/netctl.profile.5.txt +++ b/docs/netctl.profile.5.txt @@ -222,6 +222,10 @@ of the `wireless' type: selection, the matched network with the highest priority will be selected. Defaults to ``0`'. +'ExcludeAuto=':: + Whether or not to exclude this profile from automatic profile + selection. Defaults to ``no`'. + 'WPAGroup=':: Group that has the authority to configure *wpa_supplicant* via its control interface. Defaults to ``wheel`'. diff --git a/services/netctl-auto@.service b/services/netctl-auto@.service index 9a035da..6894fda 100644 --- a/services/netctl-auto@.service +++ b/services/netctl-auto@.service @@ -1,6 +1,7 @@ [Unit] Description=Automatic wireless network connection using netctl profiles Documentation=man:netctl.special(7) +BindsTo=sys-subsystem-net-devices-%i.device Before=network.target Wants=network.target diff --git a/services/netctl-ifplugd@.service b/services/netctl-ifplugd@.service index 05cb1cf..3f48362 100644 --- a/services/netctl-ifplugd@.service +++ b/services/netctl-ifplugd@.service @@ -1,6 +1,7 @@ [Unit] Description=Automatic wired network connection using netctl profiles Documentation=man:netctl.special(7) +BindsTo=sys-subsystem-net-devices-%i.device [Service] ExecStart=/usr/bin/ifplugd -i %i -r /etc/ifplugd/netctl.action -fIns diff --git a/src/lib/auto.action b/src/lib/auto.action index bfb5f1d..bdbb9ad 100755 --- a/src/lib/auto.action +++ b/src/lib/auto.action @@ -12,7 +12,6 @@ PROFILE_FILE="$STATE_DIR/wpa_actiond_$interface.profile" # Is it possible that we don't get a profile?! [[ "$profile" ]] && load_profile "$profile" -# TODO: copy some from 'network' case $action in CONNECT) if [[ -z $profile ]]; then -- cgit v1.2.3-24-g4f1b