summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-udev
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts/postinst-udev')
-rw-r--r--autoscripts/postinst-udev10
1 files changed, 5 insertions, 5 deletions
diff --git a/autoscripts/postinst-udev b/autoscripts/postinst-udev
index cbf8dbe4..20cf4dcf 100644
--- a/autoscripts/postinst-udev
+++ b/autoscripts/postinst-udev
@@ -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