-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathinstall
23 lines (23 loc) · 858 Bytes
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
if [ -z "$BASH_VERSION" ];then
echo "It appears you are using dash or sh, you must use bash or rbash to run this script"
exit
fi
here=$(dirname $0)
if [ $(apt-cache policy php5 | wc -l) -gt 4 ];then
php="php5-cli"
else
php="php-cli php-xml"
fi
echo "Need a couple dependencies"
sudo apt-get install -m curl libnotify-bin $php
if [[ ! -f /usr/bin/curl || ! -f /usr/bin/php || ! -f /usr/bin/notify-send ]];then
echo "You did not install the dependencies"
echo "You need have the curl, php, and notify-send commands available for use"
exit
fi
mkdir -p ~/.config/autostart/
cp $here/*.desktop ~/.config/autostart/
chmod +x $here/KernelUpdate*
sudo cp $here/KernelUpdate* /usr/local/bin/
echo -e "Install Complete\nUpdates will be checked for 60 seconds after login\nIf you want Release Candidates you will need to edit the new startup entry."