blob: ad04f37534b665cc6039c5928269e68a39d349dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#/bin/sh
post_install() {
echo 'Granting Capabilities to V2Ray Core...'
/usr/bin/setcap 'cap_net_bind_service=+ep cap_net_admin=+ep' /usr/bin/v2ray
}
post_remove() {
echo 'Revoking Capabilities from V2Ray Core...'
/usr/bin/setcap 'cap_net_bind_service=-ep cap_net_admin=-ep' /usr/bin/v2ray
}
|