diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-02-23 06:50:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-02-23 06:50:11 +0000 |
commit | c5972f77e51a502883d865719f0fe4e4f6c8685a (patch) | |
tree | 006daae05499b2bbb98ee22efe316486c7f60674 /etc/rc | |
parent | 5c094c211f4ea87ed5aa2b88fdb9014499a5d771 (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/rc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |