-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathArchLinux-Maintenance
More file actions
62 lines (29 loc) · 1.7 KB
/
ArchLinux-Maintenance
File metadata and controls
62 lines (29 loc) · 1.7 KB
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
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
chmod u+x -R $(dirname $(realpath $0))/Utilities/
############## Menu ##############
echo -e "\n"
echo "Maintenance menu"
echo "Select an option :"
select MenuChoice in "Check for failed systemd services" "Check for errors in the log files" "Upgrade official packages" "Upgrade AUR packages" "Check for orphaned packages" "Clean packages cache" "Check disks health" "Reboot computer" "Exit program"; do
case $MenuChoice in
############## Systemd services check ##############
"Check for failed systemd services" ) exec $(dirname $(realpath $0))/Utilities/1-CheckFailedSystemd;;
############## Error check ##############
"Check for errors in the log files" ) exec $(dirname $(realpath $0))/Utilities/2-CheckLogFiles;;
############## Official packages upgrade ##############
"Upgrade official packages" ) exec $(dirname $(realpath $0))/Utilities/3-OfficialUpgrade;;
############## AUR packages upgrade ##############
"Upgrade AUR packages" ) exec $(dirname $(realpath $0))/Utilities/4-AURupgrade;;
############## Orphaned packages check ##############
"Check for orphaned packages" ) exec $(dirname $(realpath $0))/Utilities/5-OrphanedCheck;;
############## Packages cache cleaning ##############
"Clean packages cache" ) exec $(dirname $(realpath $0))/Utilities/6-CleanPackagesCache;;
############## Disks health checking ##############
"Check disks health" ) exec $(dirname $(realpath $0))/Utilities/7-DisksCheck;;
############## Reboot computer ##############
"Reboot computer" ) reboot;;
############## Exit ##############
"Exit program" ) exit;;
############## Menu end ##############
esac
done