Commit 24c98105 authored by Silvan Calarco's avatar Silvan Calarco

fix mountproc check for /sys and remove 2.4 kernel check code

parent bf8757b8
#!/bin/sh
# mountproc - mount /proc and /sysfs (kernel 2.6.x only)
# Copyright (C) 2004-2010 Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2004-2011 Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (C) 2004-2009 Davide Madrisan <davide.madrisan@gmail.com>
. /etc/sysconfig/rc
......@@ -11,8 +11,6 @@ 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
......@@ -25,7 +23,7 @@ progress=5
$PLYMOUTH message --text=$"System booting, please wait..."
$PLYMOUTH update --status="$progress"
if [ "$KERNELMIN" -ge 6 -a -z "`mount | grep "^sysfs "`" ]; then
if [ ! -e /sys/kernel ]; then
echo -n "Mounting sys file system: "
mount -n -t sysfs sysfs /sys
evaluate_retval
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment