projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0746020
)
*really* reorg, and sync with what's actually in use
author
Mike Karels
<karels@ucbvax.Berkeley.EDU>
Wed, 16 Aug 1989 00:49:13 +0000
(16:49 -0800)
committer
Mike Karels
<karels@ucbvax.Berkeley.EDU>
Wed, 16 Aug 1989 00:49:13 +0000
(16:49 -0800)
SCCS-vsn: etc/rc 5.4
usr/src/etc/rc
patch
|
blob
|
blame
|
history
diff --git
a/usr/src/etc/rc
b/usr/src/etc/rc
index
3c3f95b
..
e2a410d
100644
(file)
--- a/
usr/src/etc/rc
+++ b/
usr/src/etc/rc
@@
-1,9
+1,9
@@
#
#
-# @(#)rc 5.
3
(Berkeley) %G%
+# @(#)rc 5.
4
(Berkeley) %G%
#
HOME=/; export HOME
#
HOME=/; export HOME
-PATH=/
bin:/sbin:/usr/sbin:/usr/bin:/usr/ucb
+PATH=/
sbin:/bin:/usr/sbin:/usr/bin
export PATH
if [ -r /fastboot ]
export PATH
if [ -r /fastboot ]
@@
-13,11
+13,9
@@
then
elif [ $1x = autobootx ]
then
echo Automatic reboot in progress... >/dev/console
elif [ $1x = autobootx ]
then
echo Automatic reboot in progress... >/dev/console
- date >/dev/console
fsck -p >/dev/console 2>&1
case $? in
0)
fsck -p >/dev/console 2>&1
case $? in
0)
- date >/dev/console
;;
2)
exit 1
;;
2)
exit 1
@@
-38,14
+36,13
@@
then
exit 1
;;
esac
exit 1
;;
esac
-else
- date >/dev/console
fi
# check the password file
if [ -f /etc/ptmp ]
then
fi
# check the password file
if [ -f /etc/ptmp ]
then
- echo '/etc/ptmp -- password file may be incorrect' > /dev/console
+ echo 'password file may be incorrect -- /etc/ptmp exists' \
+ > /dev/console
fi
umount -a
fi
umount -a
@@
-65,57
+62,56
@@
ps -U >/dev/console 2>&1
rm -f /etc/nologin
rm -f /usr/spool/uucp/LCK.*
rm -f /usr/spool/uucp/STST/*
rm -f /etc/nologin
rm -f /usr/spool/uucp/LCK.*
rm -f /usr/spool/uucp/STST/*
+(cd /var/run; rm -rf *)
chmod 666 /dev/tty[pqrs]*
# set hostname, turn on network
. /etc/netstart
chmod 666 /dev/tty[pqrs]*
# set hostname, turn on network
. /etc/netstart
-
echo 'starting system logger'
>/dev/console
+
echo 'starting system logger'
>/dev/console
rm -f /dev/log
syslogd
rm -f /dev/log
syslogd
-# /var/crash should be a
symbolic link to the crash directory
-# if core dumps are to be saved.
+# /var/crash should be a
directory or a symbolic link
+#
to the crash directory
if core dumps are to be saved.
if [ -d /var/crash ]; then
if [ -d /var/crash ]; then
- echo
'checking for core dump... '
>/dev/console
- savecore /var/crash
>/dev/console 2>&1
+ echo
'checking for core dump... '
>/dev/console
+ savecore /var/crash >/dev/console 2>&1
fi
fi
-
echo preserving editor files
>/dev/console
-(cd /tmp; /usr/lib/ex3.7preserve -a)
-
echo clearing /tmp
>/dev/console
+
echo preserving editor files
>/dev/console
+(cd /tmp; /usr/lib
exec
/ex3.7preserve -a)
+
echo clearing /tmp
>/dev/console
(cd /tmp; find . ! -name . ! -name lost+found ! -name quotas -exec rm -r {} \; )
(cd /tmp; find . ! -name . ! -name lost+found ! -name quotas -exec rm -r {} \; )
- echo clearing /var/run
-(cd /var/run; rm -rf *)
-
echo -n standard daemons:
>/dev/console
-
update; echo -n ' update' >/dev/consol
e
-cron; echo -n ' cron' >/dev/console
-accton /usr/adm/acct; echo -n ' accounting' >/dev/console
-
echo '.'
>/dev/console
+
echo -n standard daemons:
>/dev/console
+
echo -n ' update' >/dev/console; updat
e
+echo -n ' cron' >/dev/console; cron
+echo -n ' accounting' >/dev/console; accton /var/account/acct
+
echo '.'
>/dev/console
-echo -n starting network daemons:
>/dev/console
+echo -n starting network daemons: >/dev/console
# $routedflags is imported from /etc/netstart;
# if $routedflags == NO, routed isn't run.
if [ X${routedflags} != X"NO" ]; then
# $routedflags is imported from /etc/netstart;
# if $routedflags == NO, routed isn't run.
if [ X${routedflags} != X"NO" ]; then
- routed $routedflags; echo -n ' routed' >/dev/console
+ echo -n ' routed' >/dev/console; routed $routedflags
fi
fi
-{ echo -n ' named'; named; } >/dev/console
-inetd; echo -n ' inetd' >/dev/console
+echo -n ' named' >/dev/console; named >/dev/console 2>&1
+echo -n ' inetd' >/dev/console; inetd
# $rwhod is imported from /etc/netstart;
# if $rwhod is set to something other than NO, rwhod is run.
if [ ${rwhod-NO} != "NO" ]; then
# $rwhod is imported from /etc/netstart;
# if $rwhod is set to something other than NO, rwhod is run.
if [ ${rwhod-NO} != "NO" ]; then
- rwhod; echo -n ' rwhod' >/dev/console
+ echo -n ' rwhod' >/dev/console; rwhod
fi
fi
-/usr/lib/lpd; echo -n ' printer' >/dev/console
-
echo '.'
>/dev/console
+echo -n ' printer' >/dev/console; lpd
+
echo '.'
>/dev/console
sh /etc/rc.local
sh /etc/rc.local
-
date
>/dev/console
+
date
>/dev/console
exit 0
exit 0