summaryrefslogtreecommitdiff
path: root/autoscripts/postinst-udev
diff options
context:
space:
mode:
authorjoeyh <joeyh>2007-04-12 19:53:00 +0000
committerjoeyh <joeyh>2007-04-12 19:53:00 +0000
commit5f8b0ca0ad553f295e7d269e9dc39e63024be18c (patch)
treecc8f5d0c8f80c25295c4341310311df2a1def15b /autoscripts/postinst-udev
parente34e7479d1aa03f163b90829ae7d4f859371ed0e (diff)
r1985: cleanup
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 cbf8dbe..20cf4dc 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