Hi,

using spaces (" ") in passwords for WPA configuration of wireless breaks the 
build. Sed complains about unterminated "s" command due to the spaces 
interrupting the sed program.

Is this intended due to wl/nas not supporting spaces in passwords or is it just 
a bug in the build system?

In order to make things work on my machine, I have to apply the attached patch. 
It uses ' instead of " for sed program enclosure.

Best regards,
 Clemens
Index: package/base-files/Makefile
===================================================================
--- package/base-files/Makefile	(revision 3978)
+++ package/base-files/Makefile	(working copy)
@@ -257,7 +257,7 @@
 else ifeq ($(FWRT_NETWORK_WLAN_AUTORIZATION_OPEN_AND_SHARED), y)
 	$(SED) "s/@FWRT_AUTH@/open+shared/g" \
 	    $(IDIR_BASE_FILES)/etc/network/interfaces
-	$(SED) "s/@FWRT_KEY@/$(FWRT_NETWORK_WLAN_WEP_KEY)/g" \
+	$(SED) 's/@FWRT_KEY@/$(FWRT_NETWORK_WLAN_WEP_KEY)/g' \
 	    $(IDIR_BASE_FILES)/etc/network/interfaces
 else ifeq ($(FWRT_NETWORK_WLAN_SECURITY_WPA_PSK), y)
 	$(SED) "s/@FWRT_SECURITY@/wpa-psk/g" \
@@ -284,7 +284,7 @@
 	$(SED) "s/@FWRT_ENC@/aes+tkip/g" \
 	    $(IDIR_BASE_FILES)/etc/network/interfaces
 endif
-	$(SED) "s/@FWRT_KEY@/$(FWRT_NETWORK_WLAN_WPA_KEY)/g" \
+	$(SED) 's/@FWRT_KEY@/$(FWRT_NETWORK_WLAN_WPA_KEY)/g' \
 	    $(IDIR_BASE_FILES)/etc/network/interfaces
 	$(SED) "s/@FWRT_REKEY@/$(FWRT_NETWORK_WLAN_WPA_GTK_REKEY)/g" \
 	    $(IDIR_BASE_FILES)/etc/network/interfaces
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to