iw: fix build on musl host
authorRISCi_ATOM <bob@bobcall.me>
Tue, 28 Nov 2017 23:17:39 +0000 (18:17 -0500)
committerRISCi_ATOM <bob@bobcall.me>
Fri, 1 Dec 2017 17:42:31 +0000 (12:42 -0500)
package/network/utils/iw/Makefile

index a578ddc98c03bc45c18ffc7bbf2f9ad3b8918c81..9b3c12becabfed1e0ff8fcbbcb19d7eed2996723 100644 (file)
@@ -30,8 +30,7 @@ endef
 
 define Build/Configure
        echo "const char iw_version[] = \"$(PKG_VERSION)\";" > $(PKG_BUILD_DIR)/version.c
-       rm -f $(PKG_BUILD_DIR)/version.sh
-       touch $(PKG_BUILD_DIR)/version.sh
+       echo "#!/bin/sh" > $(PKG_BUILD_DIR)/version.sh
        chmod +x $(PKG_BUILD_DIR)/version.sh
 endef