From 7e025e05065d74ad15b1c478cf8759628c0bcba8 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Tue, 24 Jun 2003 03:55:21 +0000 Subject: [PATCH] Check by [ $? -eq 0 ] rather than $?. Reviewed by: mtm --- etc/network.subr | 4 ++-- 1 file 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