aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit15
1 files changed, 15 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 844af28d..b08a40c3 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -518,6 +518,21 @@ if [ "$SMP" != "$OLDSMP" -o "$UP" != "$OLDUP" ]; then
EOF
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
+ ln -s -f System.map-`uname -r` /boot/System.map
+fi
+if [ ! -e /boot/System.map -a -r /boot/System.map-`uname -r` ] ; then
+ ln -s -f System.map-`uname -r` /boot/System.map
+fi
+if [ -L /boot/module-info -a -r /boot/module-info-`uname -r` ] ; then
+ ln -s -f module-info-`uname -r` /boot/module-info
+fi
+if [ ! -e /boot/module-info -a -r /boot/module-info-`uname -r` ] ; then
+ ln -s -f module-info-`uname -r` /boot/module-info
+fi
+
# Now that we have all of our basic modules loaded and the kernel going,
# let's dump the syslog ring somewhere so we can find it later
dmesg > /var/log/dmesg