From fee8e27f322f53db66a28ecd96cc90c802210ba2 Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Sun, 3 Jul 2011 11:37:10 +0200 Subject: 8021x: create a /var/run/wpa_supplicant symlink for compat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Oudompheng --- src/8021x | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3-24-g4f1b