Fedora Remix maintained by the Rochester Institute of Technology (RIT) Linux Users Group, targeted at users new to Linux and RIT students, faculty, and staff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
918 B

  1. #!/bin/bash
  2. # Enable RPMFusion nonfree repos
  3. # author: Aidan Kahrs <axk4545@rit.edu>
  4. if [ $EUID != 0 ]
  5. then
  6. echo "Please run this script as root ( $@$0)."
  7. exit
  8. fi
  9. echo "This script will enable the RPMFusion repositories for nonfree or patent encumbered software. Due to the legal implications of shipping non-free or patent encumbered technology, we cannot enable these packages by default. Long story short, if you want to do things like like listen to mp3, or watch youtube videos in your browser, you will probably need to enable these options. You may enable these options at any time by running the enablerpmfusion.sh script located on your desktop."
  10. while true; do
  11. read -p "Do you wish to continue? [y/n] " yn
  12. case $yn in
  13. [Yy]* ) dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm;;
  14. [Nn]* ) exit;;
  15. esac
  16. done