#!/bin/sh
#
# /etc/rc.d/rc.sysinit - run once at boot time
-# $Id: rc.sysinit,v 1.99 2002/03/19 17:46:05 misiek Exp $
+# $Id: rc.sysinit,v 1.100 2002/03/19 18:35:11 misiek Exp $
#
# Taken in part from Miquel van Smoorenburg's bcheckrc.
# Changes: Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH
+# we need /proc mounted before everything
+mount -n -o gid=17 -t proc /proc /proc
+
+# 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
. /etc/sysconfig/system
else
RUN_SULOGIN_ON_ERR=yes
- RUN_ISAPNP=yes
+ RUN_USERPNP=yes
+ RUN_KERNELPNP=yes
PANIC_REBOOT_TIME=0
DELAY_LOGIN=yes
CLEAN_TMP=no
# set up pnp and kernel pnp
if [ -n "$PNP" ]; then
- if [ -x /sbin/isapnp -a -f /etc/isapnp/isapnp.conf ] && is_yes "$RUN_ISAPNP"; then
+ if is_yes "$RUN_USERPNP" && [ -x /sbin/isapnp -a -f /etc/isapnp/isapnp.conf ]; then
run_cmd "Setting up ISA PNP devices (userspace pnp)" /sbin/isapnp /etc/isapnp/isapnp.conf
fi
- if [ -e /proc/isapnp -a -f /etc/isapnp/isapnp-kernel.conf ]; then
- show "Setting up ISA PNP devices (kernelspace pnp)"; busy
- cat /etc/isapnp/isapnp-kernel.conf > /proc/isapnp && (deltext; ok) || (deltext; fail)
+ if is_yes "$RUN_KERNELPNP"; then
+ /sbin/modprobe -k isa-pnp 2> /dev/null
+ if [ -e /proc/isapnp -a -f /etc/isapnp/isapnp-kernel.conf ]; then
+ show "Setting up ISA PNP devices (kernelspace pnp)"; busy
+ grep -v "^#" /etc/isapnp/isapnp-kernel.conf > /proc/isapnp && (deltext; ok) || (deltext; fail)
+ fi
fi
fi
-# $Id: system,v 1.21 2002/03/19 17:42:33 misiek Exp $
+# $Id: system,v 1.22 2002/03/19 18:35:14 misiek Exp $
# Do you want colorized starting scripts ?
COLOR_INIT=yes
# $SERVICE_RUN_NICE_LEVEL is not defined in /etc/sysconfig/<service>
DEFAULT_SERVICE_RUN_NICE_LEVEL=0
-# Run isapnp at system startup ?
-RUN_ISAPNP=yes
+# Setup PNP using userspace tools?
+RUN_USERPNP=yes
+# Setup kernel space PNP (2.4.x)
+RUN_KERNELPNP=yes
# After how many seconds reboot system after kernel panic ?
# 0 - never reboot system (suggested 60)