summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
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 00000000..e73cb010
--- /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 00000000..15779ca6
--- /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