summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatoro Mahri <matoro_gentoo@matoro.tk>2024-01-03 10:37:03 -0500
committerSam James <sam@gentoo.org>2024-01-07 09:42:33 +0000
commit6b54da4cc0b85aaed4e4546bbb0893476fb6835c (patch)
tree6d95514281dd2049446ea8d0a22e7eb8fb345411
parentnet/dummy.sh: preload module, create interface conditionally (diff)
downloadnetifrc-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.in2
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"