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
33 lines
750 B
Bash
Executable File
33 lines
750 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Uninstall script for Venus OS D-Bus service template
|
|
#
|
|
|
|
set -e
|
|
|
|
SERVICE_NAME="dbus-template"
|
|
|
|
if [ -d "/service" ] && [ ! -L "/service" ]; then
|
|
SERVICE_DIR="/service"
|
|
elif [ -d "/opt/victronenergy/service" ]; then
|
|
SERVICE_DIR="/opt/victronenergy/service"
|
|
elif [ -L "/service" ]; then
|
|
SERVICE_DIR=$(readlink -f /service)
|
|
else
|
|
SERVICE_DIR="/opt/victronenergy/service"
|
|
fi
|
|
|
|
echo "Uninstalling $SERVICE_NAME..."
|
|
|
|
if [ -L "$SERVICE_DIR/$SERVICE_NAME" ]; then
|
|
svc -d "$SERVICE_DIR/$SERVICE_NAME" 2>/dev/null || true
|
|
sleep 2
|
|
rm "$SERVICE_DIR/$SERVICE_NAME"
|
|
echo "Service symlink removed"
|
|
fi
|
|
|
|
echo ""
|
|
echo "Uninstall complete."
|
|
echo "Files remain in /data/$SERVICE_NAME/ -- remove manually if desired."
|
|
echo ""
|