Skip to content

Commit ee93873

Browse files
committed
add post install scripts to set capabilities on radiod, control, monitor
1 parent 11ac7a4 commit ee93873

3 files changed

Lines changed: 41 additions & 4 deletions

File tree

debian/ka9q-radio-control.postinst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
set -e
3+
4+
case "$1" in
5+
configure)
6+
bin=$(command -v control 2>/dev/null || true)
7+
if [ -n "$bin" ]; then
8+
setcap cap_net_admin+ep "$bin" || true
9+
fi
10+
;;
11+
esac
12+
13+
#DEBHELPER#
14+

debian/ka9q-radio-monitor.postinst

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
#!/bin/sh
2-
bin=$(command -v ka9q-monitor 2>/dev/null || true)
3-
if [ -n "$bin" ]; then
4-
setcap cap_net_admin+ep "$bin" || true
5-
fi
2+
set -e
3+
4+
case "$1" in
5+
configure)
6+
bin=$(command -v monitor 2>/dev/null || true)
7+
if [ -n "$bin" ]; then
8+
setcap cap_net_admin+ep "$bin" || true
9+
fi
10+
;;
11+
esac
12+
13+
#DEBHELPER#
14+

debian/ka9q-radio.postinst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
set -e
3+
4+
case "$1" in
5+
configure)
6+
bin=$(command -v radiod 2>/dev/null || true)
7+
if [ -n "$bin" ]; then
8+
setcap cap_net_admin+ep "$bin" || true
9+
fi
10+
;;
11+
esac
12+
13+
#DEBHELPER#
14+

0 commit comments

Comments
 (0)