55 |
# mount sys file system before udev |
# mount sys file system before udev |
56 |
if [ -d /sys ] |
if [ -d /sys ] |
57 |
then |
then |
58 |
rc_print "Mounting sysfs file system ..." |
if [ ! -e /sys/kernel/notes ] |
59 |
mount -n -t sysfs sysfs /sys |
then |
60 |
evaluate_retval |
rc_print "Mounting sysfs file system ..." |
61 |
|
mount -n -t sysfs sysfs /sys |
62 |
|
evaluate_retval |
63 |
|
fi |
64 |
else |
else |
65 |
rc_echo -e ${COLORED}"Fatal: mountpoint /sys missing ..." |
rc_echo -e ${COLRED}"Fatal: mountpoint /sys missing ..." |
66 |
rc_echo -e ${COLYELLOW}"Please create the directory /sys (mkdir -p /sys)." |
rc_echo -e ${COLYELLOW}"Please create the directory /sys (mkdir -p /sys)." |
67 |
rc_echo -e ${COLYELLOW}"It's essential for a 2.6 kernel." |
rc_echo -e ${COLYELLOW}"It's essential for a 2.6 kernel." |
68 |
fi |
fi |