diff options
author | brooks <brooks@FreeBSD.org> | 2008-05-14 23:53:39 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2008-05-14 23:53:39 +0000 |
commit | 6ac798a490277d2d1300686fea707cc72c9ada6e (patch) | |
tree | 93ef75c00eb788758d489e13fc947dd2749d6f39 /etc | |
parent | b6c607e98bed397a6ce4d11cdbc438e22bb3c0cb (diff) | |
download | FreeBSD-src-6ac798a490277d2d1300686fea707cc72c9ada6e.zip FreeBSD-src-6ac798a490277d2d1300686fea707cc72c9ada6e.tar.gz |
Don't print the interface status if we only create child or destroy
interfaces.
Correctly return status from childif_create().
Diffstat (limited to 'etc')
-rw-r--r-- | etc/network.subr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/network.subr b/etc/network.subr index 315de61..87f9ca6 100644 --- a/etc/network.subr +++ b/etc/network.subr @@ -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. |