summaryrefslogtreecommitdiff
path: root/~lukeshu/openni-module-sensorkinect-git/sensorkinect.install
diff options
context:
space:
mode:
Diffstat (limited to '~lukeshu/openni-module-sensorkinect-git/sensorkinect.install')
-rw-r--r--~lukeshu/openni-module-sensorkinect-git/sensorkinect.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/~lukeshu/openni-module-sensorkinect-git/sensorkinect.install b/~lukeshu/openni-module-sensorkinect-git/sensorkinect.install
new file mode 100644
index 000000000..d62d263d1
--- /dev/null
+++ b/~lukeshu/openni-module-sensorkinect-git/sensorkinect.install
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+export MODULES="libXnDeviceSensorV2KM.so libXnDeviceFile.so"
+
+post_install() {
+ for module in $MODULES; do
+ /usr/bin/niReg -r /usr/lib/$module /etc/primesense
+ done
+}
+
+pre_remove() {
+ for module in $MODULES; do
+ /usr/bin/niReg -u /usr/lib/$module
+ done
+}