summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authornsayer <nsayer@FreeBSD.org>1999-09-24 06:49:00 +0000
committernsayer <nsayer@FreeBSD.org>1999-09-24 06:49:00 +0000
commit044d3b94b652491637d6b81817e165adb8dce612 (patch)
tree9357250529224cb75ce20d1e3e86507131cd8052 /etc/rc
parent876421237559a3f9d98c77ab1bef5de849a98e65 (diff)
downloadFreeBSD-src-044d3b94b652491637d6b81817e165adb8dce612.zip
FreeBSD-src-044d3b94b652491637d6b81817e165adb8dce612.tar.gz
Slight reordering of /etc/rc order: It now goes
... recover vi msgs/bounds update MOTD rc.{arch} rc.devfs rc.local $local.startup securelevel The motive behind this is to delay rc.{arch} as long as possible, as it loads the screensaver, which kills the splash screen. But at the same time, it can't be done after rc.devfs, as that might depend on arch specific actions. rc.local and local.startup also should come after these, and securelevel must be last of all.
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc58
1 files changed, 29 insertions, 29 deletions
diff --git a/etc/rc b/etc/rc
index 1553845..62c2785 100644
--- a/etc/rc
+++ b/etc/rc
@@ -404,13 +404,6 @@ esac
echo '.'
-# Configure implementation specific stuff
-#
-arch=`uname -m`
-if [ -r /etc/rc.${arch} ]; then
- . /etc/rc.${arch}
-fi
-
# Recover vi editor files.
find /var/tmp/vi.recover ! -type f -a ! -type d -delete
vibackup=`echo /var/tmp/vi.recover/vi.*`
@@ -459,28 +452,6 @@ if [ -d /var/msgs -a ! -f /var/msgs/bounds ]; then
echo 0 > /var/msgs/bounds
fi
-# For each valid dir in $local_startup, search for init scripts matching *.sh
-#
-case ${local_startup} in
-[Nn][Oo] | '')
- ;;
-*)
- echo -n 'Local package initialization:'
- for dir in ${local_startup}; do
- if [ -d "${dir}" ]; then
- for script in ${dir}/*.sh; do
- if [ -x "${script}" ]; then
- (set -T
- trap 'exit 1' 2
- ${script} start)
- fi
- done
- fi
- done
- echo .
- ;;
-esac
-
case ${update_motd} in
[Nn][Oo] | '')
;;
@@ -497,6 +468,13 @@ case ${update_motd} in
;;
esac
+# Configure implementation specific stuff
+#
+arch=`uname -m`
+if [ -r /etc/rc.${arch} ]; then
+ . /etc/rc.${arch}
+fi
+
# Run rc.devfs if readable to customize devfs
#
if [ -r /etc/rc.devfs ]; then
@@ -523,6 +501,28 @@ if [ -r /etc/rc.local ]; then
echo '.'
fi
+# For each valid dir in $local_startup, search for init scripts matching *.sh
+#
+case ${local_startup} in
+[Nn][Oo] | '')
+ ;;
+*)
+ echo -n 'Local package initialization:'
+ for dir in ${local_startup}; do
+ if [ -d "${dir}" ]; then
+ for script in ${dir}/*.sh; do
+ if [ -x "${script}" ]; then
+ (set -T
+ trap 'exit 1' 2
+ ${script} start)
+ fi
+ done
+ fi
+ done
+ echo .
+ ;;
+esac
+
# Raise kernel security level. This should be done only after `fsck' has
# repaired local file systems if you want the securelevel to be greater than 1.
#
OpenPOWER on IntegriCloud