From d956bb6668553694eb610ef89313e4a4b6bb0f72 Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Wed, 30 Dec 2015 10:20:14 -0800 Subject: Added scripts and Debian configuration files for Ubuntu PPA --- host/cmake/debian/uhd-host.postinst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 host/cmake/debian/uhd-host.postinst (limited to 'host/cmake/debian/uhd-host.postinst') 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 -- cgit v1.2.3