diff options
author | Rémy Oudompheng <remy@archlinux.org> | 2011-06-19 23:36:17 +0200 |
---|---|---|
committer | Rémy Oudompheng <remy@archlinux.org> | 2011-06-19 23:36:17 +0200 |
commit | e6f7491fb2e7a355236e78e853f8b95e47c9fd1e (patch) | |
tree | 2199efca23c8386ebefbc8525a412d078a10c19d /src/8021x | |
parent | f78309a69931bf976faa61bb8ffd1217192eebf2 (diff) | |
download | netctl-e6f7491fb2e7a355236e78e853f8b95e47c9fd1e.tar.gz netctl-e6f7491fb2e7a355236e78e853f8b95e47c9fd1e.tar.xz |
Correctly create STATE_DIR before creating WPA configuration file
Diffstat (limited to 'src/8021x')
-rw-r--r-- | src/8021x | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -167,6 +167,7 @@ make_wpa_config_file() { local WPA_CONF="$STATE_DIR/wpa.${interface}" # substitute spaces out # make empty tmp dir with correct permissions, rename it + check_make_state_dir 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 |