Skip to content

Commit

Permalink
ugh, fixed the erroneous install script..
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernandos committed Jul 8, 2013
1 parent 906a398 commit d2b3d9d
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
#! /bin/sh
service=$(/bin/ls *.service)
echo "Do you want to enable the $service? y/n"
read flag

if [[ flag -eq "y" ]]; then
read -p "Do you want to enable the $service? y/n: "
if [[ $REPLY =~ ^[Yy]$ ]]; then
cp -i "$service" "/usr/lib/systemd/system/"
systemctl enable $service &&
systemctl enable $service
echo "$service successfully installed and enabled."
fi

echo "Should we load the radeon module during bootup? y/n"
read bootup
if [[ bootup -eq "y" ]]; then
echo radeon > /etc/modules-load.d/radeon.conf &&
read -p "Should we load the radeon module during bootup? y/n: "
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo radeon > /etc/modules-load.d/radeon.conf
echo "The 'radeon' module is now loaded during startup. See /etc/modules-load.d/radeon.conf"
fi

echo "Should we load the radeon module during bootup? y/n"
read blacklist
if [[ blacklist -eq "y" ]]; then
echo "blacklist radeon" >> /etc/modprobe.d/blacklist.conf &&
read -p "Should we load the radeon module during bootup? y/n: "
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "blacklist radeon" >> /etc/modprobe.d/blacklist.conf
echo "Added the radeon module to the blacklist in /etc/modprobe.d/blacklist.conf"
fi

0 comments on commit d2b3d9d

Please sign in to comment.