From a4e77a24ea1568e3286577041f4a184a1a3b7f34 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 11 Jul 2001 01:23:32 +0000 Subject: don't tweak the System.map link if it's already correct (#39290) --- rc.d/rc.sysinit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rc.d/rc.sysinit') 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 -- cgit v1.2.1