aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake/debian/uhd-host.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'host/cmake/debian/uhd-host.postinst')
-rw-r--r--host/cmake/debian/uhd-host.postinst17
1 files changed, 17 insertions, 0 deletions
diff --git a/host/cmake/debian/uhd-host.postinst b/host/cmake/debian/uhd-host.postinst
new file mode 100644
index 000000000..1d9d31cd2
--- /dev/null
+++ b/host/cmake/debian/uhd-host.postinst
@@ -0,0 +1,17 @@
+#! /bin/sh
+
+set -e
+if [ "$1" = "configure" ]; then
+ # Create usrp group for udev access
+ if ! getent group usrp >/dev/null; then
+ addgroup --system usrp
+ fi
+ # Apply usrp2 networking optimization
+ if [ -x "`which sysctl 2>/dev/null`" ]; then
+ sysctl -p /etc/sysctl.d/uhd-usrp2.conf
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0