Skip to content

Commit

Permalink
ser2net: fix dynamic config generation (refs #5302)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Heimpold <[email protected]>
  • Loading branch information
mhei committed Jan 18, 2018
1 parent e1f66e0 commit e3e2c08
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions net/ser2net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=ser2net
PKG_VERSION:=3.5
PKG_RELEASE:=2
PKG_RELEASE:=3

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/ser2net
Expand Down Expand Up @@ -46,7 +46,7 @@ define Package/ser2net/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ser2net $(1)/usr/sbin/

$(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_CONF) ./files/ser2net.config $(1)/etc/config/ser2net
Expand Down
2 changes: 1 addition & 1 deletion net/ser2net/files/ser2net.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
config global
config ser2net global
option enabled 1

config controlport
Expand Down
2 changes: 1 addition & 1 deletion net/ser2net/files/ser2net.init
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ start_service() {

config_load ser2net

config_get_bool enabled ser2net enabled 0
config_get_bool enabled global enabled 0
[ "$enabled" -gt 0 ] || return 0

cat "$STATICCFGFILE" - 2>/dev/null <<-EOF > "$DYNAMICCFGFILE"
Expand Down

0 comments on commit e3e2c08

Please sign in to comment.