-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·52 lines (42 loc) · 1.02 KB
/
run.sh
File metadata and controls
executable file
·52 lines (42 loc) · 1.02 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
#!/bin/bash
cd $(dirname "$0")
echo "Special Modifacations by AspieSoft"
echo "$(cat ./bin/falcon.txt)"
echo
function cleanup() {
unset input
unset -f main
# reset login timeout
sudo sed -r -i 's/^Defaults([\t ]+)(.*)env_reset(.*), (timestamp_timeout=1801,?\s*)+$/Defaults\1\2env_reset\3/m' /etc/sudoers &>/dev/null
}
trap cleanup EXIT
# To log into sudo with password prompt
sudo echo
function main() {
echo
echo "[0] Exit"
echo "[1] Setup Distro"
echo "[2] Fix Common Issues"
echo "[3] Run Virus Scan"
echo "[4] Update Linux Kernel"
echo
read -p "What would you like to do? " input
if [ -z "$input" ] ; then
exit
fi
if [ "$input" -eq "0" ] ; then
exit
elif [ "$input" -eq "1" ] ; then
bash ./bin/scripts/main/setup.sh
elif [ "$input" -eq "2" ] ; then
bash ./bin/scripts/main/fix.sh
elif [ "$input" -eq "3" ] ; then
bash ./bin/scripts/main/virus-scan.sh
elif [ "$input" -eq "4" ] ; then
bash ./bin/scripts/main/update-linux-kernel.sh
else
exit
fi
main
}
main