Преглед на файлове

trelay: Install hotplug and config files as 600

The hotplug file is ran by procd, which runs as root. The config file is
used by the init script, which also runs as root.

Signed-off-by: Rosen Penev <[email protected]>
Rosen Penev преди 7 години
родител
ревизия
39d8b2cf79
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      package/kernel/trelay/Makefile

+ 3 - 3
package/kernel/trelay/Makefile

@@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=trelay
 PKG_VERSION:=0.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -41,9 +41,9 @@ endef
 
 define KernelPackage/trelay/install
 	$(INSTALL_DIR) $(1)/etc/hotplug.d/net $(1)/etc/init.d $(1)/etc/config
-	$(INSTALL_DATA) ./files/trelay.hotplug $(1)/etc/hotplug.d/net/50-trelay
+	$(INSTALL_CONF) ./files/trelay.hotplug $(1)/etc/hotplug.d/net/50-trelay
 	$(INSTALL_BIN) ./files/trelay.init $(1)/etc/init.d/trelay
-	$(INSTALL_DATA) ./files/trelay.config $(1)/etc/config/trelay
+	$(INSTALL_CONF) ./files/trelay.config $(1)/etc/config/trelay
 endef
 
 $(eval $(call KernelPackage,trelay))