-uninstall-dev:
- rm -f $(STAGING_DIR)/usr/lib/libiw.*
- rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h
+define Build/UninstallDev
+ rm -f $(STAGING_DIR)/usr/include/{iwlib,wireless}.h \
+ $(STAGING_DIR)/usr/lib/libiw.so*
+endef
+
+define Package/wireless-tools/install
+ $(INSTALL_DIR) $(1)/lib/wifi
+ $(INSTALL_DATA) ./files/wifi.sh $(1)/lib/wifi/generic.sh
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/libiw.so.28 $(1)/usr/lib/
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(CP) $(PKG_INSTALL_DIR)/usr/sbin/iw{config,getid,list,priv,spy} $(1)/usr/sbin/
+endef