diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-07-03 11:37:10 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-07-03 11:37:10 +0200 |
commit | fee8e27f322f53db66a28ecd96cc90c802210ba2 (patch) | |
tree | 328866b40e405b4dba3498a015aa5ced1c7b200c | |
parent | 3a023d68e6e84ce623369c5947bd61ebbe813425 (diff) | |
download | netctl-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/8021x | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |