BBAI Tethering Configuration - 08xRay/BBAI GitHub Wiki
By default BeagleBone AI provides tethering service to browse internet during connection to the board via WiFi. It's good idea to change the defaults of your AP for security reasons.
What's going on inside
First, let's take a look at the services thats currently available, with the help of the build-in services manager systemctl.
systemctl -a
I found bb-bbai-tether.service
that looks interesting:
systemctl cat bb-bbai-tether.service
Service description contains executable script path:
# /lib/systemd/system/bb-bbai-tether.service
[Unit]
Description=BBAI brcmfmac tether Service
After=local-fs.target
[Service]
ExecStart=/usr/bin/bb-bbai-tether
Type=forking
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
Script contains some declared fields, which could be overridden in configuration file, so all defaults may be easily replaced:
view /usr/bin/bb-bbai-tether
...
# Include defaults if available
if [ -f /etc/default/bb-wl18xx ] ; then
. /etc/default/bb-wl18xx
fi
if [ "x${USE_PERSONAL_SSID}" = "x" ] ; then
wifi_ssid="BeagleBone"
else
wifi_ssid="${USE_PERSONAL_SSID}"
fi
if [ "x${USE_PERSONAL_PASSWORD}" = "x" ] ; then
wifi_password="BeagleBone"
else
wifi_password="${USE_PERSONAL_PASSWORD}"
fi
...
Configuration file placed at the /etc/default/bb-wl18xx
.
After all the work is done, it remains to restart the service:
systemctl restart bb-bbai-tether.service