Created
February 17, 2022 23:13
-
-
Save mbierman/dd9fd1b89220af98dea74b2ab95a9f15 to your computer and use it in GitHub Desktop.
Install iftop on Firewalla
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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