]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
udev-rules: check for systemd-udevd symlink already present
authorHarald Hoyer <harald@redhat.com>
Mon, 4 Jun 2012 11:11:38 +0000 (13:11 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 4 Jun 2012 11:11:38 +0000 (13:11 +0200)
modules.d/95udev-rules/module-setup.sh

index 26d92f663e27ec69a6f9d26729680f4b0db2a89c..e8c1c04d61b83eb4c912193ed4105b70f0bac997 100755 (executable)
@@ -25,8 +25,10 @@ install() {
     for _i in ${systemdutildir}/systemd-udevd ${udevdir}/udevd /sbin/udevd; do
         [ -x "$_i" ] || continue
         inst "$_i"
-        [[ $_i != "/lib/systemd/systemd-udevd" ]] \
-            && ln -s "$_i" ${initdir}/lib/systemd/systemd-udevd
+
+        if ! [[ -f  ${initdir}/lib/systemd/systemd-udevd ]]; then
+            ln -s "$_i" ${initdir}/lib/systemd/systemd-udevd
+        fi
         break
     done