diff --git a/build/ublue-os-just/50-akmods.just b/build/ublue-os-just/50-akmods.just index 980975ed..ece1e647 100644 --- a/build/ublue-os-just/50-akmods.just +++ b/build/ublue-os-just/50-akmods.just @@ -6,25 +6,19 @@ configure-gamepads: bold=$(tput bold) normal=$(tput sgr0) echo "${bold}Configuring gamepad drivers${normal}" - echo 'uBlue (default and good for official controllers):' - echo ' - xpad-noone (xpad without Xbox One support), xpadneo, xone' - echo 'Stock:' - echo ' - Xbox one support and fixes a lot of third party controllers' - echo 'Which driver do you want to use?' - OPTION=$(ugum choose uBlue Stock) - if [ "$OPTION" == "uBlue" ]; then + echo 'Which drivers do you want to use?' + echo 'Note: Enabling xone and xpadneo can break some 3rd party controllers' + OPTION=$(ugum choose "Default Fedora drivers" "Enable xone and xpadneo" ) + if [ "$OPTION" == "Enable xone and xpadneo" ]; then sudo rm -f /etc/modprobe.d/xone.conf sudo rm -f /etc/modprobe.d/xpadneo.conf sudo rm -f /etc/modprobe.d/xpad-noone-blacklist.conf sudo rm -f /etc/modules-load.d/xpad-noone.conf - elif [ "$OPTION" == "Stock" ]; then + elif [ "$OPTION" == "Default Fedora drivers" ]; then sudo bash -c '> /etc/modprobe.d/xone.conf' sudo bash -c '> /etc/modprobe.d/xpadneo.conf' sudo bash -c '> /etc/modprobe.d/xpad-noone-blacklist.conf' sudo bash -c '> /etc/modules-load.d/xpad-noone.conf' - else - echo 'Exiting...' - exit 0 fi # Configure Broadcom WL driver (Enabling WL breaks numerous other Wi-Fi adapters) @@ -39,7 +33,4 @@ configure-broadcom-wl: elif [ "$OPTION" == "Disable" ]; then sudo bash -c '> /etc/modules-load.d/broadcom-wl-blacklist.conf' sudo bash -c 'echo "blacklist wl" > /etc/modules-load.d/default-disable-broadcom-wl.conf' - else - echo 'Exiting...' - exit 0 fi