Files
venus/dbus-lightning/uninstall.sh
dev 9756538f16 Initial commit: Venus OS boat addons monorepo
Organizes 11 projects for Cerbo GX/Venus OS into a single repository:
- axiom-nmea: Raymarine LightHouse protocol decoder
- dbus-generator-ramp: Generator current ramp controller
- dbus-lightning: Blitzortung lightning monitor
- dbus-meteoblue-forecast: Meteoblue weather forecast
- dbus-no-foreign-land: noforeignland.com tracking
- dbus-tides: Tide prediction from depth + harmonics
- dbus-vrm-history: VRM cloud history proxy
- dbus-windy-station: Windy.com weather upload
- mfd-custom-app: MFD app deployment package
- venus-html5-app: Custom Victron HTML5 app fork
- watermaker: Watermaker PLC control UI

Adds root README, .gitignore, project template, and per-project
.gitignore files. Sensitive config files excluded via .gitignore
with .example templates provided.

Made-with: Cursor
2026-03-16 17:04:16 +00:00

28 lines
843 B
Bash
Executable File

#!/bin/bash
# Uninstall Lightning Monitor for Venus OS
INSTALL_DIR="/data/dbus-lightning"
SERVICE_LINK="dbus-lightning"
# Find service directory
if [ -d "/service" ] && [ ! -L "/service" ]; then
SERVICE_DIR="/service"
elif [ -d "/opt/victronenergy/service" ]; then
SERVICE_DIR="/opt/victronenergy/service"
else
SERVICE_DIR="/opt/victronenergy/service"
fi
echo "Uninstalling Lightning Monitor..."
# Stop and remove service
if [ -L "$SERVICE_DIR/$SERVICE_LINK" ] || [ -e "$SERVICE_DIR/$SERVICE_LINK" ]; then
echo "Stopping and removing service..."
svc -d "$SERVICE_DIR/$SERVICE_LINK" 2>/dev/null || true
rm -f "$SERVICE_DIR/$SERVICE_LINK"
rm -rf "$SERVICE_DIR/$SERVICE_LINK"
fi
echo "Service removed. Files in $INSTALL_DIR are preserved."
echo "To remove everything: rm -rf $INSTALL_DIR /var/log/dbus-lightning"