-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ugh, fixed the erroneous install script..
- Loading branch information
Fernandos
committed
Jul 8, 2013
1 parent
906a398
commit d2b3d9d
Showing
1 changed file
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |