Blame 0085-95udev-rules-module-setup.sh-correctly-create-udevd-.patch
|
Harald Hoyer |
8a8033 |
From 6f000443170614db0972fe6fb848560d9285bc8b Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
8a8033 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
8a8033 |
Date: Thu, 20 Oct 2011 12:13:25 +0200
|
|
Harald Hoyer |
8a8033 |
Subject: [PATCH] 95udev-rules/module-setup.sh: correctly create udevd symlink
|
|
Harald Hoyer |
8a8033 |
|
|
Harald Hoyer |
8a8033 |
---
|
|
Harald Hoyer |
8a8033 |
modules.d/95udev-rules/module-setup.sh | 9 +++++++--
|
|
Harald Hoyer |
8a8033 |
1 files changed, 7 insertions(+), 2 deletions(-)
|
|
Harald Hoyer |
8a8033 |
|
|
Harald Hoyer |
8a8033 |
diff --git a/modules.d/95udev-rules/module-setup.sh b/modules.d/95udev-rules/module-setup.sh
|
|
Harald Hoyer |
8a8033 |
index 915c1fc..5f8bae8 100755
|
|
Harald Hoyer |
8a8033 |
--- a/modules.d/95udev-rules/module-setup.sh
|
|
Harald Hoyer |
8a8033 |
+++ b/modules.d/95udev-rules/module-setup.sh
|
|
Harald Hoyer |
8a8033 |
@@ -63,8 +63,13 @@ install() {
|
|
Harald Hoyer |
8a8033 |
[ -e /usr/lib/udev/$_i ] && dracut_install /usr/lib/udev/$_i
|
|
Harald Hoyer |
8a8033 |
done
|
|
Harald Hoyer |
8a8033 |
|
|
Harald Hoyer |
8a8033 |
- [ -x /lib/udev/udevd ] && ln -s ../lib/udev/udevd "$initdir/sbin/udevd"
|
|
Harald Hoyer |
8a8033 |
- [ -x /usr/lib/udev/udevd ] && ln -s ../usr/lib/udev/udevd "$initdir/sbin/udevd"
|
|
Harald Hoyer |
8a8033 |
+ if ! [ -e "$initdir/sbin/udevd" ]; then
|
|
Harald Hoyer |
8a8033 |
+ if [ -x /usr/lib/udev/udevd ]; then
|
|
Harald Hoyer |
8a8033 |
+ ln -s /usr/lib/udev/udevd "$initdir/sbin/udevd"
|
|
Harald Hoyer |
8a8033 |
+ elif [ -x /lib/udev/udevd ]; then
|
|
Harald Hoyer |
8a8033 |
+ ln -s /lib/udev/udevd "$initdir/sbin/udevd"
|
|
Harald Hoyer |
8a8033 |
+ fi
|
|
Harald Hoyer |
8a8033 |
+ fi
|
|
Harald Hoyer |
8a8033 |
|
|
Harald Hoyer |
8a8033 |
[ -f /etc/arch-release ] && \
|
|
Harald Hoyer |
8a8033 |
inst "$moddir/load-modules.sh" /lib/udev/load-modules.sh
|