summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémy Oudompheng <remy@archlinux.org>2011-07-03 11:37:10 +0200
committerRémy Oudompheng <remy@archlinux.org>2011-07-03 11:37:10 +0200
commitfee8e27f322f53db66a28ecd96cc90c802210ba2 (patch)
tree328866b40e405b4dba3498a015aa5ced1c7b200c
parent3a023d68e6e84ce623369c5947bd61ebbe813425 (diff)
downloadnetctl-fee8e27f322f53db66a28ecd96cc90c802210ba2.tar.gz
netctl-fee8e27f322f53db66a28ecd96cc90c802210ba2.tar.xz
8021x: create a /var/run/wpa_supplicant symlink for compat
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
-rw-r--r--src/8021x4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/8021x b/src/8021x
index 267a358..b37b663 100644
--- a/src/8021x
+++ b/src/8021x
@@ -168,6 +168,10 @@ make_wpa_config_file() {
# make empty tmp dir with correct permissions, rename it
check_make_state_dir
+ # create symlink for old compatibility
+ if [ ! -e /var/run/wpa_supplicant ]; then
+ ln -s /run/wpa_supplicant /var/run
+ fi
rm -rf "$WPA_CONF"
mv -f "$(mktemp -d --tmpdir=$STATE_DIR)" "$WPA_CONF" || return 1
echo "ctrl_interface=/run/wpa_supplicant" >> "$WPA_CONF/wpa.conf" # we know $WPA_CONF now has no spaces, but it may have other nasty chars, so still needs to be quoted