mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Don't print the interface status if we only create child or destroy
interfaces. Correctly return status from childif_create().
This commit is contained in:
parent
22d0b5dc8b
commit
106049d9ab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179001
|
@ -46,7 +46,7 @@ ifn_start()
|
|||
ifconfig_up ${ifn} && cfg=0
|
||||
ipv4_up ${ifn} && cfg=0
|
||||
ipx_up ${ifn} && cfg=0
|
||||
childif_create ${ifn} && cfg=0
|
||||
childif_create ${ifn}
|
||||
|
||||
if [ "$cfg" -eq 0 ]; then
|
||||
ifconfig ${ifn}
|
||||
|
@ -71,7 +71,7 @@ ifn_stop()
|
|||
ipv4_down ${ifn} && cfg=0
|
||||
ifconfig_down ${ifn} && cfg=0
|
||||
ifscript_down ${ifn} && cfg=0
|
||||
childif_destroy ${ifn} && cfg=0
|
||||
childif_destroy
|
||||
|
||||
if [ "$cfg" -eq 0 ]; then
|
||||
echo -n " ${ifn}"
|
||||
|
@ -532,7 +532,7 @@ childif_create()
|
|||
ifn_start $child
|
||||
done
|
||||
|
||||
return
|
||||
return ${cfg}
|
||||
}
|
||||
|
||||
# Destroy child interfaces.
|
||||
|
|
Loading…
Reference in a new issue