rc-scripts/trunk/rc.d: rc rc.sysinit
baggins
cvs at pld-linux.org
Tue Oct 25 19:11:53 CEST 2005
Author: baggins
Date: Tue Oct 25 19:11:51 2005
New Revision: 6487
Modified:
rc-scripts/trunk/rc.d/rc
rc-scripts/trunk/rc.d/rc.sysinit
Log:
- source configs before functions
Modified: rc-scripts/trunk/rc.d/rc
==============================================================================
--- rc-scripts/trunk/rc.d/rc (original)
+++ rc-scripts/trunk/rc.d/rc Tue Oct 25 19:11:51 2005
@@ -41,9 +41,6 @@
[ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS
fi
-# Source function library.
-. /etc/rc.d/init.d/functions
-
# Read system config data.
if [ -f /etc/sysconfig/system ]; then
. /etc/sysconfig/system
@@ -58,6 +55,9 @@
RUN_LDCONFIG=yes
fi
+# Source function library.
+. /etc/rc.d/init.d/functions
+
if [ "$argv2" != "chroot" ]; then
# Now find out what the current and what the previous runlevel are.
set $(/sbin/runlevel)
Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit (original)
+++ rc-scripts/trunk/rc.d/rc.sysinit Tue Oct 25 19:11:51 2005
@@ -19,43 +19,6 @@
# we need /proc mounted before everything
mount -n -o gid=17 -t proc /proc /proc
-# Read functions
-. /etc/rc.d/init.d/functions
-
-# sysfs is also needed before any other things (under kernel > 2.5)
-if grep -q sysfs /proc/filesystems 2>/dev/null ; then
- mount -n -o gid=17 -t sysfs sysfs /sys
-fi
-
-# selinux
-if grep -q selinuxfs /proc/filesystems 2>/dev/null && ! grep -q selinuxfs /proc/mounts 2>/dev/null; then
- mount -n -o gid=17 -t selinuxfs selinuxfs /selinux
-fi
-
-if [ $(kernelverser) = "002006" ]; then
- MODULES_CONF=/etc/modprobe.conf
-elif [ -r /etc/modules.conf ]; then
- MODULES_CONF=/etc/modules.conf
-else
- MODULES_CONF=/etc/conf.modules
-fi
-
-# PLD LiveCD support
-if [ -x /etc/rc.d/rc.live ]; then
- /etc/rc.d/rc.live
-fi
-
-# Choose Hardware profile
-rm -f /var/run/hwprofile 2> /dev/null
-if [ -f /etc/sysconfig/hwprof ]; then
- . /etc/sysconfig/hwprof
- if is_yes "${HWPROFILES}" && [ -x /sbin/hwprofile -a -d /etc/sysconfig/hwprofiles/data ]; then
- mount -n / -o rw,remount
- /sbin/hwprofile -qf
- mount -n / -o ro,remount
- fi
-fi
-
# NLS
if [ -r /etc/sysconfig/i18n ]; then
. /etc/sysconfig/i18n
@@ -94,6 +57,43 @@
RUN_LDCONFIG=yes
fi
+# Read functions
+. /etc/rc.d/init.d/functions
+
+# sysfs is also needed before any other things (under kernel > 2.5)
+if grep -q sysfs /proc/filesystems 2>/dev/null ; then
+ mount -n -o gid=17 -t sysfs sysfs /sys
+fi
+
+# selinux
+if grep -q selinuxfs /proc/filesystems 2>/dev/null && ! grep -q selinuxfs /proc/mounts 2>/dev/null; then
+ mount -n -o gid=17 -t selinuxfs selinuxfs /selinux
+fi
+
+if [ $(kernelverser) = "002006" ]; then
+ MODULES_CONF=/etc/modprobe.conf
+elif [ -r /etc/modules.conf ]; then
+ MODULES_CONF=/etc/modules.conf
+else
+ MODULES_CONF=/etc/conf.modules
+fi
+
+# PLD LiveCD support
+if [ -x /etc/rc.d/rc.live ]; then
+ /etc/rc.d/rc.live
+fi
+
+# Choose Hardware profile
+rm -f /var/run/hwprofile 2> /dev/null
+if [ -f /etc/sysconfig/hwprof ]; then
+ . /etc/sysconfig/hwprof
+ if is_yes "${HWPROFILES}" && [ -x /sbin/hwprofile -a -d /etc/sysconfig/hwprofiles/data ]; then
+ mount -n / -o rw,remount
+ /sbin/hwprofile -qf
+ mount -n / -o ro,remount
+ fi
+fi
+
# Disable splash when requested
[ -e /proc/splash ] && is_no "$BOOT_SPLASH" && echo "0" > /proc/splash
More information about the pld-cvs-commit
mailing list