summaryrefslogtreecommitdiff
path: root/etc/rc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-02-23 06:50:11 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-02-23 06:50:11 +0000
commitc5972f77e51a502883d865719f0fe4e4f6c8685a (patch)
tree006daae05499b2bbb98ee22efe316486c7f60674 /etc/rc
parent5c094c211f4ea87ed5aa2b88fdb9014499a5d771 (diff)
I tried to figure out how to have tmp_mnt get created automatically
inside amd source code. I could not figure out. So here it goes, until some rocket scientist points out how to do it in the real source.
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 222e8cf67ca..bc61fbb14ca 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.163 2001/02/22 08:03:22 deraadt Exp $
+# $OpenBSD: rc,v 1.164 2001/02/23 06:50:10 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -254,6 +254,9 @@ fi
if [ X${amd} = X"YES" -a -d ${amd_dir} -a -e ${amd_master} ]; then
echo -n ' amd'
+ if [ ! -d ${amd_dir} ]; then
+ mkdir -p -m 755 ${amd_dir}
+ fi
(cd /etc/amd; amd -l syslog -x error,noinfo,nostats -p \
-a ${amd_dir} `cat ${amd_master}` > /var/run/amd.pid )
fi