-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·28 lines (23 loc) · 964 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
#!/bin/bash
echo -e " ******* ** ******* "
echo -e "/**////** ****** **** /**////**"
echo -e "/** /** ****** ******/**///** **//** /** /**"
echo -e "/******* //////** **//// /** /** ** //** /******* "
echo -e "/**///** ******* //***** /****** **********/**//// "
echo -e "/** //** **////** /////**/**/// /**//////**/** "
echo -e "/** //**//******** ****** /** /** /**/** "
echo -e "// // //////// ////// // // // // "
echo -e "update && install hostapd & dnsmasq
apt update
apt upgrade -y
apt install hostapd dnsmasq -y
if [ -L $0 ]
then
BASE_DIR=`dirname $(readlink $0)`
else
BASE_DIR=`dirname $0`
fi
basepath=$(cd $BASE_DIR; pwd)
echo -e "make raspap run when boot."
sed -i '/^exit 0/i\'"$basepath"'/start.sh' /etc/rc.local
echo -e "Install Finished, if you want to change the SSID and key, change it in hostapd.conf."