if install will do the trick, why not use it\?
This commit is contained in:
parent
4f68d68f57
commit
5a9c3f0a89
6
etc/rc
6
etc/rc
@ -1,5 +1,5 @@
|
||||
# @(#)rc 5.27 (Berkeley) 6/5/91
|
||||
# $Id: rc,v 1.44 1994/06/08 18:47:45 mycroft Exp $
|
||||
# from: @(#)rc 8.2 (Berkeley) 3/17/94
|
||||
# $Id: rc,v 1.45 1994/06/18 06:38:54 cgd Exp $
|
||||
|
||||
# System startup script run by init on autoboot
|
||||
# or after single-user.
|
||||
@ -78,7 +78,7 @@ mount /var >/dev/null 2>&1
|
||||
rm -f /etc/nologin
|
||||
rm -f /var/spool/lock/LCK.*
|
||||
rm -f /var/spool/uucp/STST/*
|
||||
(cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; })
|
||||
(cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; })
|
||||
|
||||
echo -n 'starting rpc daemons:'
|
||||
echo -n ' portmap'; portmap
|
||||
|
@ -2,11 +2,11 @@
|
||||
# site-specific startup actions, daemons
|
||||
#
|
||||
# From: @(#)rc.local 5.4 (Berkeley) 12/14/90
|
||||
# $Id: rc.local,v 1.9 1994/06/16 18:59:16 deraadt Exp $
|
||||
# $Id: rc.local,v 1.10 1994/06/18 06:38:56 cgd Exp $
|
||||
#
|
||||
|
||||
if [ ! -f /etc/motd ]; then
|
||||
echo "" >/etc/motd && chmod 664 /etc/motd && chown root:wheel /etc/motd
|
||||
install -c -o root -g wheel -m 664 /dev/null /etc/motd
|
||||
fi
|
||||
T=/tmp/_motd
|
||||
rm -f $T
|
||||
|
Loading…
Reference in New Issue
Block a user