aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/mandriva-boot-links
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2011-10-21 01:28:48 +0100
committerColin Guthrie <colin@mageia.org>2011-10-21 10:10:39 +0100
commitbe75c98a06d569fbaa2d86f92676af961795d094 (patch)
treee2ce8ce7ffb97af34164634a3fbd8630dc7463e8 /systemd/mandriva-boot-links
parent4688ea25c9a5a87e48f89fc91a3c93a7c8c95b4a (diff)
downloadinitscripts-be75c98a06d569fbaa2d86f92676af961795d094.tar
initscripts-be75c98a06d569fbaa2d86f92676af961795d094.tar.gz
initscripts-be75c98a06d569fbaa2d86f92676af961795d094.tar.bz2
initscripts-be75c98a06d569fbaa2d86f92676af961795d094.tar.xz
initscripts-be75c98a06d569fbaa2d86f92676af961795d094.zip
Add the mdkconf patch
Diffstat (limited to 'systemd/mandriva-boot-links')
-rwxr-xr-xsystemd/mandriva-boot-links21
1 files changed, 21 insertions, 0 deletions
diff --git a/systemd/mandriva-boot-links b/systemd/mandriva-boot-links
new file mode 100755
index 00000000..50ecc71c
--- /dev/null
+++ b/systemd/mandriva-boot-links
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+uname_r=$(uname -r)
+
+# 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 -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
+ ln -s -f System.map-$uname_r /boot/System.map
+fi
+
+# Adjust symlinks as necessary in /boot to have the default config
+if [ -L /boot/config -a -r /boot/config-$uname_r ] ; then
+ ln -sf config-$uname_r /boot/config
+fi
+if [ ! -e /boot/config -a -r /boot/config-$uname_r ] ; then
+ ln -sf config-$uname_r /boot/config
+fi