aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/init.d/network2
-rwxr-xr-xrc.d/rc.sysinit34
2 files changed, 28 insertions, 8 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 4d0c764b..3bb2afd5 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -2,7 +2,7 @@
#
# network Bring up/down networking
#
-# chkconfig: 345 10 97
+# chkconfig: 2345 10 97
# description: Activates/Deactivates all network interfaces configured to \
# start at boot time.
# probe: true
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index e53253cf..fc846522 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -52,7 +52,7 @@ if [ ! -f /fastboot ]; then
echo "*** Dropping you to a shell; the system will reboot"
echo "*** when you leave the shell."
- PS1="(Repair filesystem) #"; export PS1
+ PS1="(Repair filesystem) \#"; export PS1
sulogin
echo "Unmounting file systems"
@@ -119,6 +119,20 @@ if [ -n $USEMODULES ]; then
if echo $1 | grep '^BOOT_IMAGE=' > /dev/null ; then
image=`echo $1 | awk -F= '{ print $2 }'`
kernelfile=`/sbin/lilo -I $image`
+ firstkernelfile=`/sbin/lilo -I $image`
+ kernelfile="$firstkernelfile"
+ # Traverse symbolic links
+ while [ -L "$kernelfile" ]; do
+ newkernelfile="`ls -l $kernelfile | awk '-F-> ' '{print $2}'`"
+ if [ "${newkernelfile#/}" != "$newkernelfile" ]; then
+ # newkernelfile is an absolut path
+ kernelfile=$newkernelfile
+ else
+ kernelfile="${kernelfile%$(basename $kernelfile)}$newkernelfile"
+ fi
+ # Check if we're looping
+ [ "$kernelfile" = "$firstkernelfile" ] && break
+ done
elif echo $1 | grep '^bootfile=' > /dev/null ; then
kernelfile=`echo $1 | awk -F= '{ print $2 }'`
fi
@@ -136,7 +150,7 @@ if [ -n $USEMODULES ]; then
fi
fi
-if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then
+if [ -x /sbin/depmod -a -n "$USEMODULES" -a ! -f /proc/sys/kernel/modprobe ]; then
# Get ready for kerneld if module support in the kernel
echo -n "Finding module dependencies... "
if [ -e /lib/modules/preferred ]; then
@@ -182,7 +196,7 @@ if [ ! -f /fastboot ]; then
echo "*** Dropping you to a shell; the system will reboot"
echo "*** when you leave the shell."
- PS1="(Repair filesystem) #"; export PS1
+ PS1="(Repair filesystem) \#"; export PS1
sulogin
echo "Unmounting file systems"
@@ -256,14 +270,20 @@ else
CLOCK=/sbin/clock
fi
-if [ $UTC = "true" ]; then
+case "$UTC" in
+ yes|true)
CLOCKFLAGS="$CLOCKFLAGS -u";
echo -n " (utc)"
-fi
-if [ $ARC = "true" ]; then
+ ;;
+esac
+
+case "$ARC" in
+ yes|true)
CLOCKFLAGS="$CLOCKFLAGS -A";
echo -n " (arc)"
-fi
+ ;;
+esac
+
echo -n ": "
$CLOCK $CLOCKFLAGS