fix util-linux compile
[openwrt.git] / package / switch / Makefile
index 07208bc..a0644ab 100644 (file)
@@ -41,12 +41,12 @@ define Build/Compile
 endef
        
 define Package/kmod-switch/install
-       install -m0755 -d $(1)/lib/modules/$(LINUX_VERSION)
+       $(INSTALL_DIR) $(1)/lib/modules/$(LINUX_VERSION)
        $(CP) $(PKG_BUILD_DIR)/*.$(LINUX_KMOD_SUFFIX) \
                $(1)/lib/modules/$(LINUX_VERSION)
-       install -m0755 -d $(1)/lib/network/
-       install -m0755 ./files/switch.sh $(1)/lib/network/
-       install -m0755 -d $(1)/etc/modules.d/
+       $(INSTALL_DIR) $(1)/lib/network/
+       $(INSTALL_BIN) ./files/switch.sh $(1)/lib/network/
+       $(INSTALL_DIR) $(1)/etc/modules.d/
        printf 'switch-core\nswitch-robo\nswitch-adm\n' > $(1)/etc/modules.d/20-switch
 endef
 
This page took 0.024041 seconds and 4 git commands to generate.