Skip to content

Commit

Permalink
Fix install script (#240)
Browse files Browse the repository at this point in the history
* Fix install script

* Abort if no wifi adapter provided
  • Loading branch information
ju-leon authored Aug 11, 2022
1 parent 87bc063 commit 3ff6238
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions scripts/install_gs.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
#!/bin/sh
#!/bin/bash
set -e

if [[ $# -eq 0 ]] ; then
echo 'Please specify the name of the WiFi adapter'
echo 'Find the name using command: ifconfig'
echo 'Aborting ...'
exit 0
fi

# Install required packages
apt update
apt upgrade

apt install python3-all libpcap-dev libsodium-dev python3-pip python3-pyroute2 python3-future python3-twisted
apt install python3-all libpcap-dev libsodium-dev python3-pip python3-pyroute2 python3-future python3-twisted python3-serial iw
apt install virtualenv
apt install debhelper
apt install dh-python build-essential
Expand Down Expand Up @@ -37,8 +44,9 @@ peer = 'connect://127.0.0.1:5600' # outgoing connection for
# video sink (QGroundControl on GS)
EOT

rm /etc/default/wifibroadcast
cat <<EOT >> /etc/default/wifibroadcast
WFB_NICS="$0"
WFB_NICS="$1"
EOT

cat <<EOT >> /etc/NetworkManager/NetworkManager.conf
Expand Down

0 comments on commit 3ff6238

Please sign in to comment.