From 056e88e1086c4e3a7b60461ac952a18ec26bfd25 Mon Sep 17 00:00:00 2001 From: mickey <> Date: Sun, 30 Jan 2000 02:17:00 +0000 Subject: [PATCH] let sed do all the work, do not invoke extra grep; millert@ ok --- src/etc/rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index daa90e20..6f922ecc 100644 --- a/src/etc/rc +++ b/src/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