mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-17 19:02:06 +08:00
6adb63b915
date: 2026-06-04T09:49:56 master commit: c0ab3550eca2e9daf197c46b7e4b24aa9637cf2e
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
|