diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-06-19 22:42:02 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-06-19 22:55:26 +0200 |
commit | 165fececf5e74d613d6ea54f927e9ed81dcb3673 (patch) | |
tree | 303e97fbf89021ab6239020b9890b53c01f84a4d /wpa_actiond | |
parent | 722552487d3f8e6525cbb873354e3c282d05bbcf (diff) | |
download | netctl-165fececf5e74d613d6ea54f927e9ed81dcb3673.tar.gz netctl-165fececf5e74d613d6ea54f927e9ed81dcb3673.tar.xz |
Add the possibility of restricting autostart to certain profiles (FS#23169)
This is done via the AUTO_PROFILES setting in /etc/conf.d/netcfg.
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Diffstat (limited to 'wpa_actiond')
-rw-r--r-- | wpa_actiond/net-auto-wireless.service | 1 | ||||
-rwxr-xr-x | wpa_actiond/netcfg-wpa_actiond | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/wpa_actiond/net-auto-wireless.service b/wpa_actiond/net-auto-wireless.service index 68b0b93..7075cb5 100644 --- a/wpa_actiond/net-auto-wireless.service +++ b/wpa_actiond/net-auto-wireless.service @@ -4,6 +4,7 @@ After=dbus.service [Service] EnvironmentFile=/etc/rc.conf +EnvironmentFile=/etc/conf.d/netcfg ExecStart=/usr/bin/netcfg-wpa_actiond $WIRELESS_INTERFACE ExecStop=/usr/bin/netcfg-wpa_actiond stop $WIRELESS_INTERFACE RemainAfterExit=yes diff --git a/wpa_actiond/netcfg-wpa_actiond b/wpa_actiond/netcfg-wpa_actiond index 045e7be..3bbb9fc 100755 --- a/wpa_actiond/netcfg-wpa_actiond +++ b/wpa_actiond/netcfg-wpa_actiond @@ -2,6 +2,8 @@ . /usr/lib/network/network . $SUBR_DIR/8021x . $SUBR_DIR/rfkill +. /etc/rc.conf +. /etc/conf.d/netcfg AUTOWIFI="/usr/sbin/wpa_actiond -p /run/wpa_supplicant" ACTION_SCRIPT="/usr/bin/netcfg-wpa_actiond-action" @@ -49,7 +51,7 @@ fi WPA_CONF="$(make_wpa_config_file $interface)" -for profile in $(list_profiles); do +for profile in ${AUTO_PROFILES:-$(list_profiles)}; do echo $profile ( load_profile $profile |