Drop KV_2_6_OR_GREATER

Linux 2.2 and 2.4 are no longer supported. RIP old kernels.
cleanup-cruft
Fabio Erculiani 12 years ago
parent 3a054014e8
commit 421b210c67

@ -50,11 +50,6 @@ KMINOR=`echo $KV | cut -f2 -d.`
KVER="${KMAJOR}.${KMINOR}" KVER="${KMAJOR}.${KMINOR}"
MISCOPTS='debug detect' MISCOPTS='debug detect'
if [ "${KMAJOR}" -ge 3 ] || [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -eq '6' ]
then
KV_2_6_OR_GREATER="yes"
fi
QUIET='1' QUIET='1'
ROOT_LINKS='bin sbin lib lib32 lib64 boot usr opt emul' ROOT_LINKS='bin sbin lib lib32 lib64 boot usr opt emul'
ROOT_TREES='etc root home var' ROOT_TREES='etc root home var'

@ -324,16 +324,13 @@ mount_devfs
mount_sysfs mount_sysfs
# Initialize mdev # Initialize mdev
if [ "${KV_2_6_OR_GREATER}" ] good_msg 'Activating mdev'
then
good_msg 'Activating mdev'
# Serialize hotplug events # Serialize hotplug events
touch /dev/mdev.seq touch /dev/mdev.seq
# Setup hotplugging for firmware loading # Setup hotplugging for firmware loading
echo /sbin/mdev > /proc/sys/kernel/hotplug echo /sbin/mdev > /proc/sys/kernel/hotplug
fi
# Load modules listed in MY_HWOPTS if /lib/modules exists for the running kernel # Load modules listed in MY_HWOPTS if /lib/modules exists for the running kernel
if [ -z "${DO_modules}" ] if [ -z "${DO_modules}" ]
@ -357,10 +354,7 @@ else
fi fi
# Ensure that device nodes are properly configured # Ensure that device nodes are properly configured
if [ "${KV_2_6_OR_GREATER}" ] mdev -s || bad_msg "mdev -s failed"
then
mdev -s || bad_msg "mdev -s failed"
fi
# Apply scan delay if specified # Apply scan delay if specified
sdelay sdelay

Loading…
Cancel
Save