diff options
author | dteske <dteske@FreeBSD.org> | 2013-06-19 18:32:18 +0000 |
---|---|---|
committer | dteske <dteske@FreeBSD.org> | 2013-06-19 18:32:18 +0000 |
commit | 4eff756ffc4592095ab481f1ff4c14469cb2b7bc (patch) | |
tree | 092b147af13e6a87cdf9760563ce32054ef8194c /usr.sbin | |
parent | 9bd5d55beb4271698463d057610c2cafbf90b068 (diff) | |
download | FreeBSD-src-4eff756ffc4592095ab481f1ff4c14469cb2b7bc.zip FreeBSD-src-4eff756ffc4592095ab481f1ff4c14469cb2b7bc.tar.gz |
Whitespace.
Diffstat (limited to 'usr.sbin')
-rwxr-xr-x | usr.sbin/bsdconfig/networking/devices | 41 | ||||
-rwxr-xr-x | usr.sbin/bsdconfig/usermgmt/userinput | 30 |
2 files changed, 31 insertions, 40 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 diff --git a/usr.sbin/bsdconfig/usermgmt/userinput b/usr.sbin/bsdconfig/usermgmt/userinput index 2be62cf..fcf6fb5 100755 --- a/usr.sbin/bsdconfig/usermgmt/userinput +++ b/usr.sbin/bsdconfig/usermgmt/userinput @@ -475,35 +475,25 @@ while :; do esac ;; 2) # Full Name - f_dialog_input_gecos "$pw_gecos" - ;; + f_dialog_input_gecos "$pw_gecos" ;; 3) # Password - f_dialog_input_password - ;; + f_dialog_input_password ;; 4) # UID - f_dialog_input_uid "$pw_uid" - ;; + f_dialog_input_uid "$pw_uid" ;; 5) # Default Group - f_dialog_input_gid "$pw_gid" - ;; + f_dialog_input_gid "$pw_gid" ;; 6) # Member of Groups - f_dialog_input_member_groups "$pw_member_groups" - ;; + f_dialog_input_member_groups "$pw_member_groups" ;; 7) # Login Class - f_dialog_input_class "$pw_class" - ;; + f_dialog_input_class "$pw_class" ;; 8) # Password Expire on - f_dialog_input_expire_password "$pw_password_expire" - ;; + f_dialog_input_expire_password "$pw_password_expire" ;; 9) # Account Expire on - f_dialog_input_expire_account "$pw_account_expire" - ;; + f_dialog_input_expire_account "$pw_account_expire" ;; A) # Home Directory - f_dialog_input_home_dir "$pw_home_dir" - ;; + f_dialog_input_home_dir "$pw_home_dir" ;; B) # Shell - f_dialog_input_shell "$pw_shell" - ;; + f_dialog_input_shell "$pw_shell" ;; esac case "$mode" in |