summaryrefslogtreecommitdiff
path: root/~lukeshu/openni-all/openni-module-sensorkinect-git/sensorkinect.install
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-01-22 22:41:02 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-01-22 22:41:02 -0500
commit084b6768e5377dcde6e361837fce5f38ba237fac (patch)
treeac9a9e51bb4541f56884e0051cd466e22fd0f678 /~lukeshu/openni-all/openni-module-sensorkinect-git/sensorkinect.install
parent7f8b2c28a13a5012b75ad50af920cb1c8aa4e986 (diff)
move ~lukeshu/openni* to ~lukeshu/openni/openni*
Diffstat (limited to '~lukeshu/openni-all/openni-module-sensorkinect-git/sensorkinect.install')
-rw-r--r--~lukeshu/openni-all/openni-module-sensorkinect-git/sensorkinect.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/~lukeshu/openni-all/openni-module-sensorkinect-git/sensorkinect.install b/~lukeshu/openni-all/openni-module-sensorkinect-git/sensorkinect.install
new file mode 100644
index 000000000..d62d263d1
--- /dev/null
+++ b/~lukeshu/openni-all/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
+}