automatically configure switches when swconfig is installed
[openwrt.git] / package / swconfig / Makefile
index e18f556..5959ef4 100644 (file)
@@ -38,8 +38,9 @@ define Build/Compile
 endef
 
 define Package/swconfig/install
-       $(INSTALL_DIR) $(1)/bin
+       $(INSTALL_DIR) $(1)/bin $(1)/lib/network
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/swconfig $(1)/bin/swconfig
+       $(INSTALL_DATA) ./files/switch.sh $(1)/lib/network/
 endef
 
 $(eval $(call BuildPackage,swconfig))