diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2015-12-30 10:20:14 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-12-30 11:22:49 -0800 |
commit | d956bb6668553694eb610ef89313e4a4b6bb0f72 (patch) | |
tree | fde6f463b0cc00be4c46d7caf24107419ae98918 /host/cmake/debian/uhd-host.postinst | |
parent | 5993ee4a4d19a41ffe40dc1a17726d52f0b8b6d0 (diff) | |
download | uhd-d956bb6668553694eb610ef89313e4a4b6bb0f72.tar.gz uhd-d956bb6668553694eb610ef89313e4a4b6bb0f72.tar.bz2 uhd-d956bb6668553694eb610ef89313e4a4b6bb0f72.zip |
Added scripts and Debian configuration files for Ubuntu PPA
Diffstat (limited to 'host/cmake/debian/uhd-host.postinst')
-rw-r--r-- | host/cmake/debian/uhd-host.postinst | 17 |
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 |