diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-02-08 20:38:03 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-02-08 20:38:03 +0000 |
commit | 0d14cec607d8328baf8c8523a2ef09ca250aa717 (patch) | |
tree | 50772158d2e96490e817bf06b1771fd7b87d9daf | |
parent | e23246dcdd3d5a2620e5f888d23b8acb98e9cdec (diff) |
Shave a few more characters.
-rw-r--r-- | distrib/miniroot/install.sub | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index bd64f888c01..84acf5f827c 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.329 2004/02/08 17:42:28 krw Exp $ +# $OpenBSD: install.sub,v 1.330 2004/02/08 20:38:02 krw Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997-2003 Todd Miller, Theo de Raadt, Ken Westerback @@ -507,7 +507,7 @@ inet_info() { 1s/.*<UP,.*/UP/p 1s/.*<.*/DOWN/p /inet/s/netmask// - /inet/s/inet//p' + /inet/s///p' } # Construct etc/dhclient.conf and issue DHCP request. Return FALSE if @@ -623,8 +623,7 @@ __EOT # Returns true if $1 contains only alphanumerics isalphanumeric() { - local _n - _n=$1 + local _n=$1 while [[ ${#_n} -ne 0 ]]; do case $_n in [A-Za-z0-9]*) ;; @@ -1584,7 +1583,7 @@ donetconfig() { none|dhcp) break ;; esac route delete default > /dev/null 2>&1 - route -n add -host default "$resp" && { echo "$resp" > /tmp/mygate ; break ; } + route -n add -host default "$resp" && { echo "$resp" >/tmp/mygate ; break ; } # Put the old default route back. The new one did not work. route -n add -host default $_dr >/dev/null 2>&1 done |