#!/bin/sh # mountproc - mount /proc and /sysfs (kernel 2.6.x only) # Copyright (C) 2004-2010 Silvan Calarco # Copyright (C) 2004-2009 Davide Madrisan . /etc/sysconfig/rc . $rc_functions . /etc/sysconfig/i18n LC_ALL=$LANG TEXTDOMAIN=initscripts TEXTDOMAINDIR=/usr/share/locale/ KERNELMIN=`uname -r | sed -e 's,[^\.]*\.,,' -e 's,\..*,,'` 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..." $PLYMOUTH update --status="$progress" if [ "$KERNELMIN" -ge 6 -a -z "`mount | grep "^sysfs "`" ]; then echo -n "Mounting sys file system: " mount -n -t sysfs sysfs /sys evaluate_retval echo fi