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:
@@ -13,7 +13,7 @@ start()
|
||||
{
|
||||
if [ "$RC_UNAME" = Linux ]; then
|
||||
ebegin "Bringing up network interface lo"
|
||||
if type ip > /dev/null 2>&1; then
|
||||
if command -v ip > /dev/null 2>&1; then
|
||||
ip addr add 127.0.0.1/8 dev lo brd + scope host
|
||||
ip route add 127.0.0.0/8 dev lo scope host
|
||||
ip link set lo up
|
||||
|
Reference in New Issue
Block a user