summaryrefslogtreecommitdiff
path: root/debian/libusrp2-0.postinst
blob: 8da31a3cdb9cbab665e2b119d3e0899b30b670b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh

set -e

if [ "$1" != "configure" ]; then
	exit 0
fi

# Create usrp group for access
if ! getent group usrp >/dev/null; then
    addgroup --system usrp
fi

# Create setuid root for group usrp on socket opener
chown root:usrp /usr/bin/usrp2_socket_opener
chmod 04750 /usr/bin/usrp2_socket_opener

#DEBHELPER#

exit 0