#!/bin/bash

# blob:summary=Remove the xpadneo Xbox controller driver and undo its module/blacklist config.
# blob:group=remove
# blob:name=gaming xbox-controllers
# blob:requires-sudo=true

set -e

blob-pkg-drop xpadneo-dkms

sudo rm -f /etc/modprobe.d/blacklist-xpad.conf /etc/modules-load.d/xpadneo.conf

echo ""
echo "Xbox controller support removed. Reboot to fully unload xpadneo and restore xpad."
