mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
* 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
36 lines
733 B
Bash
Executable File
36 lines
733 B
Bash
Executable File
#!/bin/sh
|
|
#2015 - Whistle Master
|
|
|
|
logger "== DUMP1090 INSTALL SCRIPT"
|
|
|
|
[[ -f /tmp/dump1090.progress ]] && {
|
|
exit 0
|
|
}
|
|
|
|
touch /tmp/dump1090.progress
|
|
|
|
if [ "$1" = "install" ]; then
|
|
if [ "$2" = "internal" ]; then
|
|
opkg update
|
|
opkg install dump1090
|
|
elif [ "$2" = "sd" ]; then
|
|
opkg update
|
|
opkg install dump1090 --dest sd
|
|
|
|
ln -s /sd/usr/share/dump1090/ /usr/share/dump1090
|
|
fi
|
|
|
|
touch /etc/config/dump1090
|
|
echo "config dump1090 'settings'" > /etc/config/dump1090
|
|
echo "config dump1090 'module'" >> /etc/config/dump1090
|
|
|
|
uci set dump1090.module.installed=1
|
|
uci commit dump1090.module.installed
|
|
|
|
elif [ "$1" = "remove" ]; then
|
|
opkg remove dump1090
|
|
rm -rf /etc/config/dump1090
|
|
fi
|
|
|
|
rm /tmp/dump1090.progress
|