aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2000-01-31 22:24:10 +0000
committerNalin Dahyabhai <nalin@redhat.com>2000-01-31 22:24:10 +0000
commita84618ee572933ecd2958963a4e1e3ff1fc41082 (patch)
tree93a27de64b2837c8e9a813383353ee20b42d89d7 /rc.d
parentd1eccdf7232e954803c3b5379f3a3a6eca5f3b01 (diff)
downloadinitscripts-a84618ee572933ecd2958963a4e1e3ff1fc41082.tar
initscripts-a84618ee572933ecd2958963a4e1e3ff1fc41082.tar.gz
initscripts-a84618ee572933ecd2958963a4e1e3ff1fc41082.tar.bz2
initscripts-a84618ee572933ecd2958963a4e1e3ff1fc41082.tar.xz
initscripts-a84618ee572933ecd2958963a4e1e3ff1fc41082.zip
* 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
Diffstat (limited to 'rc.d')
-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