From a84618ee572933ecd2958963a4e1e3ff1fc41082 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Mon, 31 Jan 2000 22:24:10 +0000 Subject: * sysconfig/network-scripts/ifdown-post: attempt to reset the default route in case we dropped it for PPP * src/ipcalc.1: document the "--silent" option * src/shvar.c: strtok() and other cleanups * rc.d/rc.sysinit: make symlinks for System.map and module-info automatically --- rc.d/rc.sysinit | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'rc.d') 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 -- cgit v1.2.1