diff options
Diffstat (limited to 'autoscripts/postinst-udev')
-rw-r--r-- | autoscripts/postinst-udev | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/autoscripts/postinst-udev b/autoscripts/postinst-udev index efb84d1c..cbf8dbe4 100644 --- a/autoscripts/postinst-udev +++ b/autoscripts/postinst-udev @@ -1,3 +1,9 @@ -if [ "$1" = configure -a -z "$2" ]; then - ln -sf ../#FILE# /etc/udev/rules.d/#PRIO##FILE# +if [ "$1" = configure ]; then + if [ -e /etc/udev/#FILE# ]; then + echo "Preserving user changes to /etc/udev/rules.d/#PRIO##FILE# ..." + if [ -e /etc/udev/rules.d/#PRIO##FILE# ]; then + mv -f /etc/udev/rules.d/#PRIO##FILE# /etc/udev/rules.d/#PRIO##FILE#.dpkg-new + fi + mv -f /etc/udev/#FILE# /etc/udev/rules.d/#PRIO##FILE# + fi fi |