Skip to content

Commit

Permalink
xinetd: support for anonym configs
Browse files Browse the repository at this point in the history
config by names clashes if a service supports
udp and tcp, eg time and daytime

Signed-off-by: Fritz D. Ansel <fdansel@yandex.ru>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
  • Loading branch information
selanf authored and 1715173329 committed Aug 14, 2021
1 parent 0051e6e commit 11dd701
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion net/xinetd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=xinetd
PKG_VERSION:=2.3.15
PKG_RELEASE:=11
PKG_RELEASE:=12

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/xinetd-org/xinetd/archive
Expand Down
4 changes: 2 additions & 2 deletions net/xinetd/files/xinetd.init
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ config_cb() {
fi

local type="$1"
local name="$2"
local name="$(uci -q get xinetd.$2.name || echo $2)"

if [ "$type" = "service" ]; then

Expand All @@ -62,7 +62,7 @@ config_cb() {
local option="$1"
local value="$2"

[ -n "$value" ] && echo -e "\t$option = $value" >> $GENERATED_CONF_FILE
[ -n "$value" ] && [ "$option" != "name" ] && echo -e "\t$option = $value" >> $GENERATED_CONF_FILE
}

# redefined callback for lists when calling config_load
Expand Down

0 comments on commit 11dd701

Please sign in to comment.