mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-22 02:54:53 +00:00
3G,4G/LTE BASE HAT installation added
This commit is contained in:
parent
3f7782e949
commit
ad9f62aaf0
@ -11,6 +11,8 @@ echo "${YELLOW}2: 3G, 4G/LTE Base Shield${SET}"
|
|||||||
echo "${YELLOW}3: Cellular IoT App Shield${SET}"
|
echo "${YELLOW}3: Cellular IoT App Shield${SET}"
|
||||||
echo "${YELLOW}4: Cellular IoT HAT${SET}"
|
echo "${YELLOW}4: Cellular IoT HAT${SET}"
|
||||||
echo "${YELLOW}5: Tracker HAT${SET}"
|
echo "${YELLOW}5: Tracker HAT${SET}"
|
||||||
|
echo "${YELLOW}6: 3G/4G Base HAT${SET}"
|
||||||
|
|
||||||
|
|
||||||
read shield_hat
|
read shield_hat
|
||||||
case $shield_hat in
|
case $shield_hat in
|
||||||
@ -18,7 +20,8 @@ case $shield_hat in
|
|||||||
2) echo "${YELLOW}You chose Base Shield${SET}";;
|
2) echo "${YELLOW}You chose Base Shield${SET}";;
|
||||||
3) echo "${YELLOW}You chose CellularIoT Shield${SET}";;
|
3) echo "${YELLOW}You chose CellularIoT Shield${SET}";;
|
||||||
4) echo "${YELLOW}You chose CellularIoT HAT${SET}";;
|
4) echo "${YELLOW}You chose CellularIoT HAT${SET}";;
|
||||||
5) echo "${YELLOW}You chose Tracker HAT${SET}";;
|
5) echo "${YELLOW}You chose Tracker HAT${SET}";;
|
||||||
|
6) echo "${YELLOW}You chose 3G/4G Base HAT${SET}";;
|
||||||
*) echo "${RED}Wrong Selection, exiting${SET}"; exit 1;
|
*) echo "${RED}Wrong Selection, exiting${SET}"; exit 1;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -167,12 +170,15 @@ do
|
|||||||
|
|
||||||
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/reconnect_tracker -O reconnect.sh
|
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/reconnect_tracker -O reconnect.sh
|
||||||
|
|
||||||
|
elif [ $shield_hat -eq 6 ]; then
|
||||||
|
|
||||||
|
wget --no-check-certificate https://raw.githubusercontent.com/sixfab/Sixfab_PPP_Installer/master/ppp_installer/reconnect_basehat -O reconnect.sh
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv reconnect.sh /usr/src/
|
mv reconnect.sh /usr/src/
|
||||||
mv reconnect.service /etc/systemd/system/
|
mv reconnect.service /etc/systemd/system/
|
||||||
|
|
||||||
|
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable reconnect.service
|
systemctl enable reconnect.service
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user