mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-21 08:24:10 +01:00
Check by [ $? -eq 0 ] rather than $?.
Reviewed by: mtm
This commit is contained in:
parent
5858b0cea8
commit
7e025e0506
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116774
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user