Browse Source

ser2net: fix dynamic config generation (refs #5302)

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
lilik-openwrt-22.03
Michael Heimpold 7 years ago
parent
commit
e3e2c08487
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      net/ser2net/Makefile
  2. +1
    -1
      net/ser2net/files/ser2net.config
  3. +1
    -1
      net/ser2net/files/ser2net.init

+ 2
- 2
net/ser2net/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ser2net PKG_NAME:=ser2net
PKG_VERSION:=3.5 PKG_VERSION:=3.5
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/ser2net PKG_SOURCE_URL:=@SF/ser2net
@ -46,7 +46,7 @@ define Package/ser2net/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ser2net $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ser2net $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc $(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) $(PKG_BUILD_DIR)/ser2net.conf $(1)/etc/
$(INSTALL_CONF) ./files/ser2net.conf $(1)/etc/
$(INSTALL_DIR) $(1)/etc/config $(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/ser2net.config $(1)/etc/config/ser2net $(INSTALL_CONF) ./files/ser2net.config $(1)/etc/config/ser2net


+ 1
- 1
net/ser2net/files/ser2net.config View File

@ -1,4 +1,4 @@
config global
config ser2net global
option enabled 1 option enabled 1
config controlport config controlport


+ 1
- 1
net/ser2net/files/ser2net.init View File

@ -165,7 +165,7 @@ start_service() {
config_load ser2net config_load ser2net
config_get_bool enabled ser2net enabled 0
config_get_bool enabled global enabled 0
[ "$enabled" -gt 0 ] || return 0 [ "$enabled" -gt 0 ] || return 0
cat "$STATICCFGFILE" - 2>/dev/null <<-EOF > "$DYNAMICCFGFILE" cat "$STATICCFGFILE" - 2>/dev/null <<-EOF > "$DYNAMICCFGFILE"


Loading…
Cancel
Save