Commit 24c9810503be5ec833af6930e8b1dacc0156d7e3

Authored by Silvan Calarco
1 parent bf8757b8e2
Exists in master

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

Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff

etc/rc.d/init.d/mountproc
1 1 #!/bin/sh
2 2 # mountproc - mount /proc and /sysfs (kernel 2.6.x only)
3   -# Copyright (C) 2004-2010 Silvan Calarco <silvan.calarco@mambasoft.it>
  3 +# Copyright (C) 2004-2011 Silvan Calarco <silvan.calarco@mambasoft.it>
4 4 # Copyright (C) 2004-2009 Davide Madrisan <davide.madrisan@gmail.com>
5 5  
6 6 . /etc/sysconfig/rc
... ... @@ -11,8 +11,6 @@
11 11 TEXTDOMAIN=initscripts
12 12 TEXTDOMAINDIR=/usr/share/locale/
13 13  
14   -KERNELMIN=`uname -r | sed -e 's,[^\.]*\.,,' -e 's,\..*,,'`
15   -
16 14 if [ ! -e /proc/version ]; then
17 15 echo -n "Mounting proc file system: "
18 16 mount -n -t proc proc /proc
... ... @@ -25,7 +23,7 @@
25 23 $PLYMOUTH message --text=$"System booting, please wait..."
26 24 $PLYMOUTH update --status="$progress"
27 25  
28   -if [ "$KERNELMIN" -ge 6 -a -z "`mount | grep "^sysfs "`" ]; then
  26 +if [ ! -e /sys/kernel ]; then
29 27 echo -n "Mounting sys file system: "
30 28 mount -n -t sysfs sysfs /sys
31 29 evaluate_retval