summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2003-06-24 03:55:21 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2003-06-24 03:55:21 +0000
commit7e025e05065d74ad15b1c478cf8759628c0bcba8 (patch)
tree76532903b6746164c576c2c6b8bf8bbba738e686
parent5858b0cea8ba1a5eda12fcaaeb5f27b0d287efae (diff)
Notes
-rw-r--r--etc/network.subr4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 85ee4d371918..d9512246ba8d 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -157,7 +157,7 @@ clone_up()
_list=
for ifn in ${cloned_interfaces}; do
ifconfig ${ifn} create
- if $? ; then
+ if [ $? -eq 0 ]; then
_list="${_list}${_prefix}${ifn}"
[ -z "$_prefix" ] && _prefix=' '
fi
@@ -174,7 +174,7 @@ clone_down()
_list=
for ifn in ${cloned_interfaces}; do
ifconfig ${ifn} destroy
- if $? ; then
+ if [ $? -eq 0 ]; then
_list="${_list}${_prefix}${ifn}"
[ -z "$_prefix" ] && _prefix=' '
fi