diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 1997-11-23 11:54:17 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 1997-11-23 11:54:17 +0000 |
commit | 518c0071f44dfb9716d70e0d8781585db7a3bd7d (patch) | |
tree | 83d7f1502cbf63e625bb458ccdd9926f9737b716 | |
parent | 03b71bf0d3a40bcc4117e542679c2ae051eec328 (diff) |
Add support for mopd. -moj
-rw-r--r-- | etc/rc | 9 | ||||
-rw-r--r-- | etc/rc.conf | 3 |
2 files changed, 10 insertions, 2 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.55 1997/11/19 23:44:21 deraadt Exp $ +# $OpenBSD: rc,v 1.56 1997/11/23 11:54:16 maja Exp $ # System startup script run by init on autoboot # or after single-user. @@ -352,6 +352,13 @@ if [ "X${rbootd_flags}" != X"NO" -a -r /etc/rbootd.conf ]; then echo -n ' rbootd'; rbootd ${rbootd_flags} fi +# $mopd_flags is imported from /etc/rc.conf; +# If $mopd_flags == NO or /tftpboot/mop doesn't exist, then +# mopd isn't run. +if [ "X${mopd_flags}" != X"NO" -a -d /tftpboot/mop ]; then + echo -n ' mopd'; mopd ${mopd_flags} +fi + if [ -x /usr/sbin/screenblank ]; then echo -n ' screenblank'; /usr/sbin/screenblank fi diff --git a/etc/rc.conf b/etc/rc.conf index 0ac224b2aae..f14ab43838e 100644 --- a/etc/rc.conf +++ b/etc/rc.conf @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: rc.conf,v 1.2 1997/09/23 21:20:47 mickey Exp $ +# $OpenBSD: rc.conf,v 1.3 1997/11/23 11:54:16 maja Exp $ # set these to "NO" to turn them off. otherwise, they're used as flags routed_flags=NO # for 'normal' use: routed_flags=-q @@ -12,6 +12,7 @@ sendmail_flags=NO # for 'normal' use: sendmail_flags="-bd -q30m" named_flags=NO # for 'normal' use: named_flags="" timed_flags=NO # for 'normal' use: timed_flags="" photurisd_flags="" # for 'normal' use: photurisd_flags="" +mopd_flags=NO # for 'normal' use: mopd_flags="-a" # set the following to "YES" to turn them on rwhod=NO |