aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-01-28 06:54:56 +0000
committerBill Nottingham <notting@redhat.com>2004-01-28 06:54:56 +0000
commit1d0a1d1a9ef04f64b99f81c32f268e9f074d753f (patch)
treeac7a8bf68bcde97d38c5f54ba4a23a1f8e5a7b1c /rc.d
parentb6dbcf3e817a5c76a79cc2766e6045682da8c009 (diff)
downloadinitscripts-1d0a1d1a9ef04f64b99f81c32f268e9f074d753f.tar
initscripts-1d0a1d1a9ef04f64b99f81c32f268e9f074d753f.tar.gz
initscripts-1d0a1d1a9ef04f64b99f81c32f268e9f074d753f.tar.bz2
initscripts-1d0a1d1a9ef04f64b99f81c32f268e9f074d753f.tar.xz
initscripts-1d0a1d1a9ef04f64b99f81c32f268e9f074d753f.zip
only run mkkerneldoth on < 2.6 kernels
remove the system.map linking; it's silly
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit14
1 files changed, 4 insertions, 10 deletions
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