From 1d0a1d1a9ef04f64b99f81c32f268e9f074d753f Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 28 Jan 2004 06:54:56 +0000 Subject: only run mkkerneldoth on < 2.6 kernels remove the system.map linking; it's silly --- rc.d/rc.sysinit | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'rc.d') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index c6763372..9283339c 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -392,6 +392,7 @@ if ! strstr "$cmdline" nomodules && [ -f /proc/modules ] ; then fi unamer=`uname -r` +eval version=`echo unamer | awk -F '.' '{ print "(" $1 " " $2 ")" }'` # tweak isapnp settings if needed. if [ -n "$PNP" -a -f /proc/isapnp -a -x /sbin/sndconfig ]; then @@ -786,16 +787,9 @@ if [ -x /usr/sbin/redhat-config-network-cmd ]; then fi # Generate a header that defines the boot kernel. -/sbin/mkkerneldoth - -# Adjust symlinks as necessary in /boot to keep system services from -# spewing messages about mismatched System maps and so on. -if [ -L /boot/System.map -a -r /boot/System.map-$unamer -a \ - ! /boot/System.map -ef /boot/System.map-$unamer ]; then - ln -s -f System.map-$unamer /boot/System.map -fi -if [ ! -e /boot/System.map -a -r /boot/System.map-$unamer ]; then - ln -s -f System.map-$unamer /boot/System.map +# remove after Fedora Core 2 +if [ "${version[0]}" -lt "3" -a "${version[1]}" -lt "6" ]; then + /sbin/mkkerneldoth fi # The special Red Hat kernel library symlink must point to the right library -- cgit v1.2.1