From f8b17531464384176de01e45586eb3e900ce2728 Mon Sep 17 00:00:00 2001 From: itojun <> Date: Sun, 2 Jan 2000 06:42:13 +0000 Subject: [PATCH] indentation fix (todd's part) --- src/etc/netstart | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/etc/netstart b/src/etc/netstart index 79ae12d5..9d4bc4cb 100644 --- a/src/etc/netstart +++ b/src/etc/netstart @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: netstart,v 1.59 2000/01/02 06:39:08 todd Exp $ +# $OpenBSD: netstart,v 1.60 2000/01/02 06:42:13 itojun Exp $ # Returns true if $1 contains only alphanumerics isalphanumeric() { @@ -126,26 +126,26 @@ for hn in /etc/hostname.*; do [a-z]*) cmd2="$dt $dtaddr" ;; - esac - if [ ! -n "$name" ]; then + esac + if [ ! -n "$name" ]; then echo "/etc/hostname.$if: invalid network configuration file" return - fi - case $af in - inet) + fi + case $af in + inet) [ "$mask" ] && cmd="$cmd netmask $mask" if [ "$bcaddr" -a "X$bcaddr" != "XNONE" ]; then cmd="$cmd broadcast $bcaddr" fi [ "$alias" ] && rtcmd="; route -n add -host $name 127.0.0.1" - ;; - inet6) [ "$mask" ] && cmd="$cmd prefixlen $mask" + ;; + inet6) [ "$mask" ] && cmd="$cmd prefixlen $mask" cmd="$cmd $bcaddr" ;; - *) cmd="$cmd $mask $bcaddr" - esac - cmd="$cmd $ext1 $ext2$rtcmd" rtcmd= - ;; + *) cmd="$cmd $mask $bcaddr" + esac + cmd="$cmd $ext1 $ext2$rtcmd" rtcmd= + ;; esac eval "$cmd" done < /etc/hostname.$if