-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
53 lines (39 loc) · 926 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
#!/bin/bash
# Ensure we are being ran as root
if [ $(id -u) -ne 0 ]; then
echo "This script must be ran as root"
exit 1
fi
chmod -R 755 *
clear
echo "$(tput setaf 2)Making a backup in case I fuck up your system! Please wait..."
sleep 3
cd /etc/
tar -zcvf etc.tar.gz /etc
clear
echo "$(tput setaf 2)Installing everything for you! Please wait..."
sleep 5
clear
cd /home/*/nm4n00bz
sudo apt-get update
sudo apt-get install network-manager
apt install udhcpd
touch /var/lib/misc/udhcpd.leases
clear
echo 'Making more backups of exsiting files...'
# make backups of existing files
if [ -e /etc/rc.local ]
then
cp /etc/rc.local /etc/rc.local.adhoc_bak
fi
if [ -e /etc/udhcpd.conf ]
then
cp /etc/udhcpd.conf /etc/udhcpd.conf.adhoc_bak
fi
if [ -e /etc/dhcpcd.conf ]
then
cp /etc/dhcpcd.conf /etc/dhcpcd.conf.adhoc_bak
fi
clear
echo "$(tput setaf 2)DONE! Please reboot for installation to finish."
sleep 2