Skip to content

Commit

Permalink
chore(just): change gamepad description to be more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
HikariKnight committed Jan 2, 2024
1 parent 9ebd62d commit bcf22fd
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions build/ublue-os-just/50-akmods.just
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

0 comments on commit bcf22fd

Please sign in to comment.