nano-tetra-modules/ngrep/scripts/dependencies.sh
Marc e676793328
Update Modules for 2.6.0+ (Wave 1) (#71)
* Misc: Ignore JetBrains IDE files

* Modules: Update Modules for 2.6.0 (1)

* SiteSurvey: Actually install mdk3 dependency.

* Modules: Bump version numbers for updated modules
2019-08-21 21:15:53 +01:00

33 lines
585 B
Bash
Executable File

#!/bin/sh
#2015 - Whistle Master
logger "== Ngrep Install Script"
[[ -f /tmp/ngrep.progress ]] && {
exit 0
}
touch /tmp/ngrep.progress
if [ "$1" = "install" ]; then
if [ "$2" = "internal" ]; then
opkg update
opkg install ngrep
elif [ "$2" = "sd" ]; then
opkg update
opkg install ngrep --dest sd
fi
touch /etc/config/ngrep
echo "config ngrep 'module'" > /etc/config/ngrep
uci set ngrep.module.installed=1
uci commit ngrep.module.installed
elif [ "$1" = "remove" ]; then
opkg remove ngrep
rm -rf /etc/config/ngrep
fi
rm /tmp/ngrep.progress