-
Notifications
You must be signed in to change notification settings - Fork 16
/
post_install.command
executable file
·45 lines (38 loc) · 989 Bytes
/
post_install.command
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
#!/bin/bash
#set -x
clear
echo "Dell G7 7588 post-install script by Juan-VC"
echo "This Script Requires Administrator Privileges!"
if [[ $EUID -ne 0 ]];
then
exec sudo /bin/zsh "$0" "$@"
fi
echo -ne "\n"
cd "$(dirname "$0")" # path where post_install.command was invoked
cd HiDPI_Files/ && ./install.sh
cd "$(dirname "$0")"
cd ALCPlugFix-Swift && ./install.sh
# disable unnecesary/not supported features and save power
sudo rm -rf /var/vm/sleepimage
sudo mkdir -p /var/vm/sleepimage
sudo pmset autopoweroff 0
sudo pmset powernap 0
sudo pmset standby 0
sudo pmset proximitywake 0
sudo pmset tcpkeepalive 0
defaultColor="\033[0m"
red="\033[0;31m"
echo -e ""$red"\nSuccessfully installed, reboot now to take effect! $defaultColor"
echo -e ""$red"Appreciate the work? Consider donating -> https://www.paypal.me/juanvasquezcastro"
afplay /System/Library/Sounds/Glass.aiff
echo "\nPress any key to finish"
while [ true ]
do
read -t 3 -n 1
if [ $? = 0 ]
then
exit
fi
done
echo
exit 1