diff options
author | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-08-02 18:37:39 +0000 |
---|---|---|
committer | madduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464> | 2006-08-02 18:37:39 +0000 |
commit | 5c0ef2266d1a190d029eab5c479e91692b29dc89 (patch) | |
tree | aabe2673c06a16cc55ecae9d2dc4f9116e152d6e /debian/mdadm.postinst | |
parent | bb7af6cfe2aa56a57996fc86adc438151e98c3a3 (diff) |
improvements to udev stuff
Diffstat (limited to 'debian/mdadm.postinst')
-rw-r--r-- | debian/mdadm.postinst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/mdadm.postinst b/debian/mdadm.postinst index 3743bfc5..0d7819b1 100644 --- a/debian/mdadm.postinst +++ b/debian/mdadm.postinst @@ -135,3 +135,13 @@ if [ -x /etc/init.d/mdadm-raid ]; then /etc/init.d/mdadm-raid start || exit $? fi fi + +# install udev symlink if it's not already there and we're being upgraded, +# see #359614 +V=2.5.2-10 +F=/etc/udev/rules.d/z60_mdadm.rules +if [ "${1:-}" = "configure" ] && dpkg --compare-versions "${2:-$V}" lt $V \ + && [ ! -e $F ]; then + + ln -s ../mdadm.rules $F +fi |