mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-29 10:53:49 +08:00
eefc084302
version: sunnypilot v2025.003.000 (dev) date: 2025-12-18T05:48:43 master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
18 lines
342 B
Bash
Executable File
18 lines
342 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
|
|
|
AGNOS_PY=$1
|
|
MANIFEST=$2
|
|
|
|
if [[ ! -f "$AGNOS_PY" || ! -f "$MANIFEST" ]]; then
|
|
echo "invalid args"
|
|
exit 1
|
|
fi
|
|
|
|
if systemctl is-active --quiet weston-ready; then
|
|
$DIR/updater_weston $AGNOS_PY $MANIFEST
|
|
else
|
|
$DIR/updater_magic $AGNOS_PY $MANIFEST
|
|
fi
|