summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-01-30 02:17:01 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-01-30 02:17:01 +0000
commit43d400d287d7b41a3393acc85128f5cb9c85b280 (patch)
treee2f47bac40c3ee0383bbce2e69f329f80a90fff6
parent92ff7948162236c3c7227142e95fb53440d25334 (diff)
let sed do all the work, do not invoke extra grep; millert@ ok
-rw-r--r--etc/rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index daa90e208ae..6f922ecca85 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.127 2000/01/02 14:25:07 itojun Exp $
+# $OpenBSD: rc,v 1.128 2000/01/30 02:17:00 mickey Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -108,7 +108,7 @@ fi
if [ -f /etc/sysctl.conf ]; then
(
# delete comments and blank lines
- set -- `sed -e 's/#.*$//' /etc/sysctl.conf | grep -v '^$'`
+ set -- `sed -e 's/#.*$//' -e '/^$/d' /etc/sysctl.conf`
while [ $# -ge 1 ] ; do
sysctl -w $1
shift 1
@@ -147,7 +147,7 @@ syslogd ${syslogd_flags}
if [ -f /etc/ifaliases ]; then
(
# delete comments and blank lines
- set -- `sed -e 's/#.*$//' /etc/ifaliases | grep -v '^$'`
+ set -- `sed -e 's/#.*$//' -e '/^$/d' /etc/ifaliases`
while [ $# -ge 3 ] ; do
ifconfig $1 inet alias $2 netmask $3
route -n add -host $2 localhost