-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
52 lines (43 loc) · 957 Bytes
/
install.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
48
49
50
51
52
#!/bin/bash
full_path="$( pwd -P )/$0"
cd "${full_path%/*}"
path_here=$( pwd )
function run() {
local script="install/${1}.sh" status
cd "$path_here"
if [[ -f $script ]]; then
[[ ! -x $script ]] && chmod u+x "$script"
$script
status=$?
[[ $status -ne 0 ]] && exit $status
else
echo "$script file not found"
fi
}
run "wifi"
clear
echo "Waiting 10 seconds so internet connection is fully stabilished..."
sleep 10
run "errors"
# disable powersave and TTY from getting blank with user inactivity
setterm -blank 0 -powersave off
run "prepare"
run "base-system"
run "aur-support"
run "manage-users"
run "hardware-specific"
run "general-configs"
run "swapfile"
run "resize-tmp"
run "essential-system"
run "util-applications"
run "themes"
run "funny-packages"
run "retry-installation"
run "user-setup"
run "system-setup"
run "wrapup"
clear
echo "Rebooting system..."
sleep 5
shutdown --reboot now