summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>1998-09-19 02:31:52 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>1998-09-19 02:31:52 +0000
commitcf0de2f14fc552333ea6bc395f98f9956218f4ad (patch)
tree62adfa0f9f551baba36e7d67eb9d92fed3e8de9e
parent738091d6f55beccca1a22d90a08fd2330d25c920 (diff)
shift ifaliases. one more daemon can bind to specific ifaliases.
-rw-r--r--etc/rc34
1 files changed, 17 insertions, 17 deletions
diff --git a/etc/rc b/etc/rc
index fd6dabb48da..7d42b72c767 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.88 1998/08/28 04:42:38 millert Exp $
+# $OpenBSD: rc,v 1.89 1998/09/19 02:31:51 todd Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -97,6 +97,22 @@ if [ "X${named_flags}" != X"NO" -a "X${named_chroot}" != "X" ]; then
fi
syslogd ${syslogd_flags}
+# /etc/ifaliases, if it exists, contains the names of additional IP
+# addresses for each interface. It is formatted as a series of lines
+# that contain
+# interface address netmask
+if [ -f /etc/ifaliases ]; then
+(
+ # delete comments and blank lines
+ set -- `sed -e 's/#.*$//' /etc/ifaliases | grep -v '^$'`
+ while [ $# -ge 3 ] ; do
+ ifconfig $1 inet alias $2 netmask $3
+ route -n add -host $2 localhost
+ shift 3
+ done
+)
+fi
+
# $named_flags, $named_user, and $named_chroot are imported from /etc/rc.conf;
# if $named_flags != NO, named is run.
if [ "X${named_flags}" != X"NO" ]; then
@@ -116,22 +132,6 @@ if [ "X${named_flags}" != X"NO" ]; then
echo 'starting named'; named $named_flags
fi
-# /etc/ifaliases, if it exists, contains the names of additional IP
-# addresses for each interface. It is formatted as a series of lines
-# that contain
-# interface address netmask
-if [ -f /etc/ifaliases ]; then
-(
- # delete comments and blank lines
- set -- `sed -e 's/#.*$//' /etc/ifaliases | grep -v '^$'`
- while [ $# -ge 3 ] ; do
- ifconfig $1 inet alias $2 netmask $3
- route -n add -host $2 localhost
- shift 3
- done
-)
-fi
-
if [ X"${ipfilter}" = X"YES" -a X"${ipmon_flags}" != X"NO" ]; then
echo 'starting ipmon'; ipmon ${ipmon_flags}
fi