for var in $VARS $OPTS; do
if [[ ${!var} != n ]]; then
- echo "$var=${!var:-y}" >> .config
+ echo "$var=${!var:-y}"
# We ship libnl-3.
if [[ "$var" = CONFIG_DRIVER_NL80211 ]]; then
- echo CONFIG_LIBNL32=y >> .config
+ echo CONFIG_LIBNL32=y
fi
fi
-done &&
+done > .config &&
+echo "CFLAGS += $CFLAGS" >> .config
sed -i "s|/usr/local|$INSTALL_ROOT/usr|g" Makefile &&
if is_depends_enabled $SPELL dbus; then
if [[ $WPA_RELEASE == legacy ]]; then
- sed -i "s|=/sbin|=$INSTALL_ROOT/usr/sbin|g" dbus-wpa_supplicant.service
+ sed -i "s|=/sbin|=$INSTALL_ROOT/sbin|g" dbus-wpa_supplicant.service
elif [[ $WPA_RELEASE == devel ]]; then
- sed -i "s|=/sbin|=$INSTALL_ROOT/usr/sbin|g" \
+ sed -i "s|=/sbin|=$INSTALL_ROOT/sbin|g" \
dbus/fi.epitest.hostap.WPASupplicant.service
fi
fi &&
diff --git a/net/wpa_supplicant/init.d/wpa_supplicant
b/net/wpa_supplicant/init.d/wpa_supplicant
index 1012147..4f89630 100755
--- a/net/wpa_supplicant/init.d/wpa_supplicant
+++ b/net/wpa_supplicant/init.d/wpa_supplicant
@@ -2,7 +2,7 @@