summaryrefslogtreecommitdiff
path: root/autoscripts
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
parente34e7479d1aa03f163b90829ae7d4f859371ed0e (diff)
downloaddebhelper-5f8b0ca0ad553f295e7d269e9dc39e63024be18c.tar.gz
r1985: cleanup
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-udev10
-rw-r--r--autoscripts/preinst-udev12
2 files changed, 11 insertions, 11 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
diff --git a/autoscripts/preinst-udev b/autoscripts/preinst-udev
index 9c63d191..9d90a355 100644
--- a/autoscripts/preinst-udev
+++ b/autoscripts/preinst-udev
@@ -1,12 +1,12 @@
if [ "$1" = install ] || [ "$1" = upgrade ]; then
- if [ -e /etc/udev/#FILE# ]; then
- if [ "`md5sum \"/etc/udev/#FILE#\" | sed -e \"s/ .*//\"`" = \
- "`sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' /etc/udev/#FILE#'{s/.* //;p}}\" /var/lib/dpkg/status`" ]
+ if [ -e "#OLD#" ]; then
+ if [ "`md5sum \"#OLD#\" | sed -e \"s/ .*//\"`" = \
+ "`sed -n -e \"/^Conffiles:/,/^[^ ]/{\\\\' #OLD#'{s/.* //;p}}\" /var/lib/dpkg/status`" ]
then
- rm -f /etc/udev/#FILE#
+ rm -f "#OLD#"
fi
fi
- if [ -L /etc/udev/rules.d/#PRIO##FILE# ]; then
- rm -f /etc/udev/rules.d/#PRIO##FILE#
+ if [ -L "#RULE#" ]; then
+ rm -f "#RULE#"
fi
fi