Skip to content

Instantly share code, notes, and snippets.

@mbierman
Created February 17, 2022 23:13
Show Gist options
  • Select an option

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

Select an option

Save mbierman/dd9fd1b89220af98dea74b2ab95a9f15 to your computer and use it in GitHub Desktop.
Install iftop on Firewalla
#!/bin/bash
app=iftop
command_exists () {
command -v $1 >/dev/null 2>&1;
}
if command_exists $app; then
echo -e "\n\n$app instaleld!\n bye"
exit
else
echo "$app could not be found"
echo "installing..."
fi
unalias apt
unalias apt-get
sudo apt-get update -y
sudo apt-get install -y $app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment