summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-06-14 15:50:56 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-06-14 15:50:56 +0000
commit58add44a0a8ba3c4a300e5fa133bc33631f1acae (patch)
treeecb4c423a3813a4180628a9b88b3c8fb370f592a
parent5e258ae8763009b1df2cfc46741dd286a535bd54 (diff)
avoid a few extra processes; d.doroshenko@omnitel.net
-rw-r--r--etc/rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index 0a88b49c5ca..bc055b57644 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.140 2000/06/13 18:29:48 deraadt Exp $
+# $OpenBSD: rc,v 1.141 2000/06/14 15:50:55 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -252,7 +252,7 @@ fi
# $nfs_server is imported from /etc/rc.conf;
# if $nfs_server == YES, the machine is setup for being an nfs server
if [ X${nfs_server} = X"YES" -a -s /etc/exports -a \
- `cat /etc/exports | sed -e '/^#/d' | wc -l` -ne 0 ]; then
+ `sed -e '/^#/d' < /etc/exports | wc -l` -ne 0 ]; then
rm -f /var/db/mountdtab
echo -n > /var/db/mountdtab
echo -n ' mountd'; mountd
@@ -400,7 +400,7 @@ fi
if [ "X${dhcpd_flags}" != X"NO" -a -f /etc/dhcpd.conf ]; then
touch /var/db/dhcpd.leases
if [ -f /etc/dhcpd.interfaces ]; then
- dhcpd_ifs=`cat /etc/dhcpd.interfaces | awk -F\# '{ print $1; }'`
+ dhcpd_ifs=`awk -F\# '{ print $1; }' < /etc/dhcpd.interfaces`
fi
echo -n ' dhcpd'; /usr/sbin/dhcpd ${dhcpd_flags} ${dhcpd_ifs}
fi