#!/bin/bash

# Uninstalling net-aranymp2p

sudo systemctl stop net-aranymp2p.service 2>/dev/null
sudo systemctl disable net-aranymp2p.service 2>/dev/null

mv /etc/net-aranymp2p.conf /etc/net-aranymp2p.conf.bak
rm /usr/bin/net-aranymp2p
rm /etc/systemd/system/net-aranymp2p.service

echo "

 net-aranymp2p is uninstalled from the system
 
 /etc/net-aranymp2p.conf.bak  is standing for you.
 
 iptables not removed
 
 "$(logname)" user stays in netdev Group
 
 For removing:
 sudo apt purge iptables
 sudo deluser "$(logname)" netdev
 
"

exit 0
