aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-07-11 01:23:32 +0000
committerBill Nottingham <notting@redhat.com>2001-07-11 01:23:32 +0000
commita4e77a24ea1568e3286577041f4a184a1a3b7f34 (patch)
treeb979e1c07100d54586fa87ffa5bd2e269854e127 /rc.d
parent6b6c2559bfe68d433b78a7b35e1e56dfdbb6b332 (diff)
downloadinitscripts-a4e77a24ea1568e3286577041f4a184a1a3b7f34.tar
initscripts-a4e77a24ea1568e3286577041f4a184a1a3b7f34.tar.gz
initscripts-a4e77a24ea1568e3286577041f4a184a1a3b7f34.tar.bz2
initscripts-a4e77a24ea1568e3286577041f4a184a1a3b7f34.tar.xz
initscripts-a4e77a24ea1568e3286577041f4a184a1a3b7f34.zip
don't tweak the System.map link if it's already correct (#39290)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit3
1 files changed, 2 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 477f547d..153c5b44 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -663,7 +663,8 @@ fi
# 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-`uname -r` ] ; then
+if [ -L /boot/System.map -a -r /boot/System.map-`uname -r` -a \
+ ! /boot/System.map -ef /boot/System.map-`uname -r` ] ; then
ln -s -f System.map-`uname -r` /boot/System.map
fi
if [ ! -e /boot/System.map -a -r /boot/System.map-`uname -r` ] ; then