summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2001-02-23 06:50:10 +0000
committerderaadt <deraadt@openbsd.org>2001-02-23 06:50:10 +0000
commit29e925e4f5cb866abfdecf0978405c3663ede85d (patch)
tree73fdeac6773422013d9d5cbae8bb1ee97e7c4677
parentremove unnecessary state, ND6_LLINFO_WAITDELETE, from neighbor cache (diff)
downloadwireguard-openbsd-29e925e4f5cb866abfdecf0978405c3663ede85d.tar.xz
wireguard-openbsd-29e925e4f5cb866abfdecf0978405c3663ede85d.zip
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.
-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