Lines 140-149
Link Here
|
140 |
|
140 |
|
141 |
if [ "${RC_UNAME}" != "GNU/kFreeBSD" -a "${RC_SYS}" != "VPS" -a "${K26}" = "0" ] ; then |
141 |
if [ "${RC_UNAME}" != "GNU/kFreeBSD" -a "${RC_SYS}" != "VPS" -a "${K26}" = "0" ] ; then |
142 |
if [ -d /sys ] ; then |
142 |
if [ -d /sys ] ; then |
143 |
ebegin "Mounting sysfs at /sys" |
143 |
if ! mountinfo --quiet /sys ; then |
144 |
mntcmd="$(fstabinfo --mountcmd /sys)" |
144 |
ebegin "Mounting sysfs at /sys" |
145 |
try mount -n ${mntcmd:--t sysfs -o noexec,nosuid,nodev sysfs /sys} |
145 |
mntcmd="$(fstabinfo --mountcmd /sys)" |
146 |
eend $? |
146 |
try mount -n ${mntcmd:--t sysfs -o noexec,nosuid,nodev sysfs /sys} |
|
|
147 |
eend $? |
148 |
fi |
147 |
else |
149 |
else |
148 |
ewarn "No /sys to mount sysfs needed in 2.6 and later kernels!" |
150 |
ewarn "No /sys to mount sysfs needed in 2.6 and later kernels!" |
149 |
fi |
151 |
fi |