diff options
Diffstat (limited to 'post.install')
-rw-r--r-- | post.install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/post.install b/post.install new file mode 100644 index 000000000000..0890f658d18a --- /dev/null +++ b/post.install @@ -0,0 +1,19 @@ +# For DEV9 netplay support +post_install() +{ + setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/pcsx2-qt + + cd /usr/share/PCSX2/resources + sudo curl -O -L https://github.com/PCSX2/pcsx2_patches/releases/download/latest/cheats_ni.zip + sudo curl -O -L https://github.com/PCSX2/pcsx2_patches/releases/download/latest/cheats_ws.zip +} + +post_upgrade() +{ + setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/pcsx2-qt + cd /usr/share/PCSX2/resources + sudo rm cheats_ws.zip + sudo rm cheats_ni.zip + sudo curl -O -L https://github.com/PCSX2/pcsx2_patches/releases/download/latest/cheats_ni.zip + sudo curl -O -L https://github.com/PCSX2/pcsx2_patches/releases/download/latest/cheats_ws.zip +} |