net/keepalived: add keepalived.user script handling

Add keepalived.user script handling which are also saved during sysupgrade.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert
2017-11-07 11:31:18 +01:00
parent ff33ff463b
commit 738da3146c
3 changed files with 26 additions and 0 deletions
+5
View File
@@ -39,6 +39,7 @@ endef
define Package/keepalived/conffiles
/etc/keepalived/keepalived.conf
/etc/config/keepalived
/etc/keepalived.user
endef
CONFIGURE_ARGS+= \
@@ -62,6 +63,10 @@ define Package/keepalived/install
$(INSTALL_BIN) ./files/keepalived.init $(1)/etc/init.d/keepalived
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/keepalived.config $(1)/etc/config/keepalived
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) ./files/keepalived.user $(1)/etc/keepalived.user
$(INSTALL_DIR) $(1)/etc/hotplug.d/keepalived
$(INSTALL_DATA) ./files/hotplug-user $(1)/etc/hotplug.d/keepalived/01-user
endef
$(eval $(call BuildPackage,keepalived))