2011-04-26 12:26:24 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# mountproc - mount /proc and /sysfs (kernel 2.6.x only)
|
2011-04-29 21:32:57 +02:00
|
|
|
# Copyright (C) 2004-2011 Silvan Calarco <silvan.calarco@mambasoft.it>
|
2011-04-26 12:26:24 +02:00
|
|
|
# Copyright (C) 2004-2009 Davide Madrisan <davide.madrisan@gmail.com>
|
|
|
|
|
|
|
|
. /etc/sysconfig/rc
|
|
|
|
. $rc_functions
|
|
|
|
|
|
|
|
. /etc/sysconfig/i18n
|
|
|
|
LC_ALL=$LANG
|
|
|
|
TEXTDOMAIN=initscripts
|
|
|
|
TEXTDOMAINDIR=/usr/share/locale/
|
|
|
|
|
|
|
|
if [ ! -e /proc/version ]; then
|
|
|
|
echo -n "Mounting proc file system: "
|
|
|
|
mount -n -t proc proc /proc
|
|
|
|
evaluate_retval
|
|
|
|
echo "/sbin/modprobe" > /proc/sys/kernel/modprobe
|
|
|
|
echo
|
|
|
|
fi
|
|
|
|
|
|
|
|
progress=5
|
|
|
|
$PLYMOUTH message --text=$"System booting, please wait..."
|
|
|
|
|
2011-04-29 21:32:57 +02:00
|
|
|
if [ ! -e /sys/kernel ]; then
|
2011-04-26 12:26:24 +02:00
|
|
|
echo -n "Mounting sys file system: "
|
|
|
|
mount -n -t sysfs sysfs /sys
|
|
|
|
evaluate_retval
|
|
|
|
echo
|
|
|
|
fi
|