syslog-ng: tweak shell code of network_localhost little bit
We can get rid of pipe with -n flag to sysctl. Signed-off-by: Karel Kočí <cynerd@email.cz>
This commit is contained in:
parent
6f4874ad98
commit
7b7d074c8d
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=syslog-ng
|
PKG_NAME:=syslog-ng
|
||||||
PKG_VERSION:=3.29.1
|
PKG_VERSION:=3.29.1
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
|
PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
|
||||||
PKG_LICENSE:=LGPL-2.1-or-later GPL-2.0-or-later
|
PKG_LICENSE:=LGPL-2.1-or-later GPL-2.0-or-later
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ "$(sysctl net.ipv6.conf.lo.disable_ipv6 | cut -d' ' -f 3)" = "0" ]; then
|
if [ "$(sysctl -n net.ipv6.conf.lo.disable_ipv6)" = "0" ]; then
|
||||||
echo 'network(ip("::1") port(514) transport(udp) ip-protocol(6) )'
|
echo 'network(ip("::1") port(514) transport(udp) ip-protocol(6) )'
|
||||||
else
|
else
|
||||||
echo 'network(ip("127.0.0.1") port(514) transport(udp) ip-protocol(4) )'
|
echo 'network(ip("127.0.0.1") port(514) transport(udp) ip-protocol(4) )'
|
||||||
|
|
Loading…
Reference in a new issue