remove type command
The posix equivalent of the type command is "command -v", so now we use that. Thanks to Jonathan Callen <jcallen@gentoo.org> for informing me wrt the fix.
This commit is contained in:
@@ -53,7 +53,7 @@ start_pre()
|
||||
eend $?
|
||||
fi
|
||||
else
|
||||
if type kldload >/dev/null 2>&1; then
|
||||
if command -v kldload >/dev/null 2>&1; then
|
||||
# Hammer the modules home by default
|
||||
sysctl -a | grep -q '\.tun\.' || kldload if_tun
|
||||
sysctl -a | grep -q '\.tap\.' || kldload if_tap
|
||||
|
||||
Reference in New Issue
Block a user