]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-udev
r2004: file. (Thanks Wakko)
[debhelper.git] / autoscripts / postinst-udev
index cbf8dbe405fb0ddad74e58991c629dc38503d24f..40b953dd6ea9481dd7e469dacb9d931d619b918c 100644 (file)
@@ -1,9 +1,9 @@
 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
+       if [ -e "#OLD#" ]; then
+               echo "Preserving user changes to #RULE# ..."
+               if [ -e "#RULE#" ]; then
+                       mv -f "#RULE#" "#RULE#.dpkg-new"
                fi
-               mv -f /etc/udev/#FILE# /etc/udev/rules.d/#PRIO##FILE#
+               mv -f "#OLD#" "#RULE#"
        fi
 fi