-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharch-dependencies.sh
executable file
·47 lines (41 loc) · 1.13 KB
/
arch-dependencies.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
BASEDIR=$(pwd)
if [ "$EUID" != 0 ]; then
echo "Root access required for the next steps."
sudo "$0" "$@"
exit $?
fi
echo "Do you want to install the pacman packages?"
select yn in "Yes" "No"; do
case $yn in
Yes )
echo "Installing pacman packages..."
sudo pacman -S $(cat $BASEDIR/pacman-packages)
break;;
No ) break;;
* ) echo "Please answer yes or no."
esac
done
echo "Do you want to install the window manager packages?"
select yn in "Yes" "No"; do
case $yn in
Yes )
echo "Installing pacman packages..."
sudo pacman -S $(cat $BASEDIR/wm-packages)
break;;
No ) break;;
* ) echo "Please answer yes or no."
esac
done
echo "Do you want to copy the system files?"
select yn in "Yes" "No"; do
case $yn in
Yes )
sudo cp -r $BASEDIR/system/xorg.conf.d/* /etc/X11/xorg.conf.d/
#sudo cp $BASEDIR/system/pacman.conf /etc/
break;;
No ) break;;
* ) echo "Please answer yes or no."
esac
done