Dev9ghzdrk: Postinst for deb to add network capabilities

This commit is contained in:
Daniel Nowak 2018-10-13 23:03:09 -04:00 committed by lightningterror
parent 49b91ea78f
commit 21f0752ce7
1 changed files with 6 additions and 0 deletions

6
debian-packager/postinst Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
echo 'Enabling networking capability on Linux...'
set -x
[ -f /usr/games/PCSX2 ] && setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/games/PCSX2
set +x