#!/bin/sh
#
# /etc/rc.d/rc.sysinit - run once at boot time
-# $Id: rc.sysinit,v 1.69.2.12 2001/10/13 08:29:19 misiek Exp $
+# $Id: rc.sysinit,v 1.69.2.14 2001/10/25 08:27:05 misiek Exp $
#
# Taken in part from Miquel van Smoorenburg's bcheckrc.
# Changes: Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
sleep 1
fi
+# Set console loglevel
+/bin/dmesg -n $CONSOLE_LOGLEVEL
+
# /dev must be also mounted before everything but only if we want use them ;-)
if is_yes "$MOUNT_DEVFS"; then
run_cmd "Mounting Device Filesystem" mount -n -t devfs /dev /dev
run_cmd "Starting Device Filesystem Daemon" /sbin/devfsd /dev
fi
-# Set console loglevel
-/bin/dmesg -n $CONSOLE_LOGLEVEL
-
# Configure Linux kernel
run_cmd "Configuring kernel parameters" /sbin/sysctl -p /etc/sysctl.conf
# Remount the root filesystem read-write.
run_cmd "Remounting root filesystem in rw mode" mount -n -o remount,rw /
-# Find and activate volume groups
-if [ -e /proc/lvm -a -x /sbin/vgscan -a -x /sbin/vgchange -a -e /etc/lvmtab ]; then
- modprobe -s lvm-mod >/dev/null 2>&1
- run_cmd "Scanning for LVM volume groups" /sbin/vgscan && \
- run_cmd "Activating LVM volume groups" /sbin/vgchange -a y
-fi
-
# Clear mtab
>/etc/mtab
/etc/rc.d/rc.modules
fi
+# Find and activate volume groups
+modprobe -s lvm-mod >/dev/null 2>&1
+if [ -e /proc/lvm -a -x /sbin/vgscan -a -x /sbin/vgchange -a -e /etc/lvmtab ]; then
+ run_cmd "Scanning for LVM volume groups" /sbin/vgscan && \
+ run_cmd "Activating LVM volume groups" /sbin/vgchange -a y
+fi
+
# Add raid devices
if [ ! -f /proc/mdstat ]; then
modprobe -s md >/dev/null 2>&1
if [ -f /proc/sys/kernel/panic -a "$PANIC_REBOOT_TIME" -gt "0" ]; then
show 'Setting %s seconds for kernel reboot after panic' "$PANIC_REBOOT_TIME"; busy
- if (sysctl -w kernel.panic=$PANIC_REBOOT_TIME 2> /dev/null); then ok; else fail; fi
+ if (sysctl -w kernel.panic=$PANIC_REBOOT_TIME > /dev/null 2>&1); then ok; else fail; fi
fi
# Clean out /etc.