udev-rules: check for systemd-udevd symlink already present

master
Harald Hoyer 2012-06-04 13:11:38 +02:00
parent 604d1eb21a
commit 6042b30c58
1 changed files with 4 additions and 2 deletions

View File

@ -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