summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-03-24 14:26:26 +0100
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-03-24 14:26:26 +0100
commit3989029bc06733955138ba914529bbdb743d2066 (patch)
treea1c64bbbf6f6f8a12e58f03e833dbdc3f0980b01 /tools
parentMerge pull request #10843 from pguibert6WIND/isis_extreme_debug (diff)
downloadfrr-3989029bc06733955138ba914529bbdb743d2066.tar.xz
frr-3989029bc06733955138ba914529bbdb743d2066.zip
tools: Replace `strings` to `tr` for frrinit.sh
dc3bae68a2422ead82a12fa8480417fd4e351cdd added strings command, which is wrong. It requires additional package to be installed on the system (binutils). Let's just get use `tr`. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/frrinit.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/frrinit.sh.in b/tools/frrinit.sh.in
index e41f2706e..df5f0853d 100644
--- a/tools/frrinit.sh.in
+++ b/tools/frrinit.sh.in
@@ -77,7 +77,7 @@ reload)
# systemd doesn't set WATCHDOG_USEC for reload commands.
watchfrr_pidfile="$V_PATH/watchfrr.pid"
watchfrr_pid="`cat \"$watchfrr_pidfile\"`"
- watchfrr_cmdline="`strings /proc/$watchfrr_pid/cmdline`"
+ watchfrr_cmdline="`tr '\0' '\n' < /proc/$watchfrr_pid/cmdline`"
if [ -d "/proc/$watchfrr_pid" ]; then
wdt="`tr '\0' '\n' < /proc/$watchfrr_pid/environ | grep '^WATCHDOG_USEC='`"
wdt="${wdt#WATCHDOG_USEC=}"