summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdconfig/networking
diff options
context:
space:
mode:
authordteske <dteske@FreeBSD.org>2013-06-19 18:32:18 +0000
committerdteske <dteske@FreeBSD.org>2013-06-19 18:32:18 +0000
commit4eff756ffc4592095ab481f1ff4c14469cb2b7bc (patch)
tree092b147af13e6a87cdf9760563ce32054ef8194c /usr.sbin/bsdconfig/networking
parent9bd5d55beb4271698463d057610c2cafbf90b068 (diff)
downloadFreeBSD-src-4eff756ffc4592095ab481f1ff4c14469cb2b7bc.zip
FreeBSD-src-4eff756ffc4592095ab481f1ff4c14469cb2b7bc.tar.gz
Whitespace.
Diffstat (limited to 'usr.sbin/bsdconfig/networking')
-rwxr-xr-xusr.sbin/bsdconfig/networking/devices41
1 files changed, 21 insertions, 20 deletions
diff --git a/usr.sbin/bsdconfig/networking/devices b/usr.sbin/bsdconfig/networking/devices
index 8a507f2..9da736e 100755
--- a/usr.sbin/bsdconfig/networking/devices
+++ b/usr.sbin/bsdconfig/networking/devices
@@ -83,7 +83,7 @@ while :; do
# from the device name if present.
#
case "$interface" in
- *\*) interface="${interface%?}";;
+ *\*) interface="${interface%?}" ;;
esac
#
@@ -104,30 +104,31 @@ while :; do
# If DHCP, get IP address/netmask later from ifconfig(8)
glob="[Dd][Hh][Cc][Pp]"
case "$_ifconfig" in
- $glob) dhcp=1;;
- [Ss][Yy][Nn][Cc]$glob) dhcp=1;;
- [Nn][Oo][Ss][Yy][Nn][Cc]$glob) dhcp=1;;
+ $glob) dhcp=1 ;;
+ [Ss][Yy][Nn][Cc]$glob) dhcp=1 ;;
+ [Nn][Oo][Ss][Yy][Nn][Cc]$glob) dhcp=1 ;;
*)
#
# Get IP address/netmask from rc.conf(5) configuration
#
dhcp=
- eval "$( exec 2> /dev/null
- set -- $_ifconfig
- while [ $# -gt 0 ]; do
- case "$1" in
- inet)
- shift 1
- echo "_ipaddr='$1'"
- ;;
- netmask)
- shift 1
- echo "_netmask='$1'"
- ;;
- esac
- shift 1
- done
- )"
+ eval "$(
+ exec 2> /dev/null
+ set -- $_ifconfig
+ while [ $# -gt 0 ]; do
+ case "$1" in
+ inet)
+ shift 1
+ echo "_ipaddr='$1'"
+ ;;
+ netmask)
+ shift 1
+ echo "_netmask='$1'"
+ ;;
+ esac
+ shift 1
+ done
+ )"
;;
esac
fi
OpenPOWER on IntegriCloud