summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
authorjoeyh <joeyh>2006-02-23 16:51:33 +0000
committerjoeyh <joeyh>2006-02-23 16:51:33 +0000
commit51c3322ebaed2029aab342f10b759e982e05668f (patch)
tree258cc3efa35b9117b7b04bb3d4aef997549ac6cc /autoscripts
parentd6cc1db4d09238ed419b8f5c61110b6a752972d7 (diff)
r1881: * Add dh_installudev by Marco d'Itri.
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-udev3
-rw-r--r--autoscripts/postrm-udev4
2 files changed, 7 insertions, 0 deletions
diff --git a/autoscripts/postinst-udev b/autoscripts/postinst-udev
new file mode 100644
index 0000000..e73cb01
--- /dev/null
+++ b/autoscripts/postinst-udev
@@ -0,0 +1,3 @@
+if [ "$1" = configure -a -z "$2" ]; then
+ ln -s ../#FILE# /etc/udev/rules.d/#PRIO##FILE#
+fi
diff --git a/autoscripts/postrm-udev b/autoscripts/postrm-udev
new file mode 100644
index 0000000..15779ca
--- /dev/null
+++ b/autoscripts/postrm-udev
@@ -0,0 +1,4 @@
+if [ "$1" = purge ]; then
+ [ -L /etc/udev/rules.d/#PRIO##FILE# ] && \
+ rm /etc/udev/rules.d/#PRIO##FILE#
+fi