Skip to content

Instantly share code, notes, and snippets.

@mbierman
Last active February 8, 2026 20:02
Show Gist options
  • Select an option

  • Save mbierman/9ac6a35622ee5a0c631ed6f6ad74b722 to your computer and use it in GitHub Desktop.

Select an option

Save mbierman/9ac6a35622ee5a0c631ed6f6ad74b722 to your computer and use it in GitHub Desktop.
Install Speedtest for firewalla
!/bin/bash
# 3.0
# https://gist.github.com/mbierman/9ac6a35622ee5a0c631ed6f6ad74b722
# Put this script in ~/.firewalla/config/post_main.d in order to resinstall after upgrades
dir=/data
log=/data/logs/fw_reboot.txt
if ! [ -w $log ] ; then
sudo touch $log
sudo chmod a+w $log
fi
app=speedtest
applocation=/usr/bin/$app
edate=$(date +'%a %b %d %H:%M:%S %Z %Y')
install () {
unalias apt-get 2>/dev/null || true
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install -yq $app
echo -e "$edate $app instaleld!" | tee -a $log
}
install
@mbierman
Copy link
Author

mbierman commented May 18, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment