1 2 3 4 5 6 7 8 9 10 11 12 13 14 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 }