diff options
author | 2024-01-03 10:37:03 -0500 | |
---|---|---|
committer | 2024-01-07 09:42:33 +0000 | |
commit | 6b54da4cc0b85aaed4e4546bbb0893476fb6835c (patch) | |
tree | 6d95514281dd2049446ea8d0a22e7eb8fb345411 | |
parent | net/dummy.sh: preload module, create interface conditionally (diff) | |
download | netifrc-6b54da4cc0b85aaed4e4546bbb0893476fb6835c.tar.gz netifrc-6b54da4cc0b85aaed4e4546bbb0893476fb6835c.tar.bz2 netifrc-6b54da4cc0b85aaed4e4546bbb0893476fb6835c.zip |
net.lo.in: replace "type" bashism with "command"
Closes: https://bugs.gentoo.org/844178
Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
Closes: https://github.com/gentoo/netifrc/pull/50
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | init.d/net.lo.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in index 0bb69f3..afba99f 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -902,7 +902,7 @@ stop() yesno ${module} && _down 2>/dev/null fi - type resolvconf >/dev/null 2>&1 && resolvconf -d "${IFACE}" 2>/dev/null + command -v resolvconf >/dev/null && resolvconf -d "${IFACE}" 2>/dev/null if [ "$(command -v "postdown")" = "postdown" ]; then ebegin "Running postdown" |