mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 01:50:47 -04:00
update sh script
This commit is contained in:
@@ -41,7 +41,7 @@ Flags:
|
|||||||
| `-b PATH` | use a different roverd binary (defaults to `dist/roverd`) |
|
| `-b PATH` | use a different roverd binary (defaults to `dist/roverd`) |
|
||||||
| `-c PATH` | seed `/etc/roverd.yaml` from another template |
|
| `-c PATH` | seed `/etc/roverd.yaml` from another template |
|
||||||
| `--mediamtx` | download/install mediaMTX plus the provided config + unit |
|
| `--mediamtx` | download/install mediaMTX plus the provided config + unit |
|
||||||
| `--mediamtx-version X.Y.Z` | override the mediaMTX release tag (default `1.8.6`) |
|
| `--mediamtx-version X.Y.Z` | override the mediaMTX release tag (default `1.15.3`) |
|
||||||
|
|
||||||
If the script installs the sample config, it will remind you to edit `/etc/roverd.yaml` before manually restarting the service: set `name`, `serverUrl`, serial device, BRC pin, battery thresholds, and the WHEP URL that the central server should expose.
|
If the script installs the sample config, it will remind you to edit `/etc/roverd.yaml` before manually restarting the service: set `name`, `serverUrl`, serial device, BRC pin, battery thresholds, and the WHEP URL that the central server should expose.
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ set -euo pipefail
|
|||||||
BINARY_SRC="dist/roverd"
|
BINARY_SRC="dist/roverd"
|
||||||
CONFIG_SRC="pi/roverd/roverd.sample.yaml"
|
CONFIG_SRC="pi/roverd/roverd.sample.yaml"
|
||||||
INSTALL_MEDIAMTX=0
|
INSTALL_MEDIAMTX=0
|
||||||
MEDIAMTX_VERSION="1.8.6"
|
MEDIAMTX_VERSION="1.15.3"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat <<'USAGE'
|
cat <<'USAGE'
|
||||||
@@ -18,7 +18,7 @@ Options:
|
|||||||
-c, --config <path> Source config to install if /etc/roverd.yaml is missing
|
-c, --config <path> Source config to install if /etc/roverd.yaml is missing
|
||||||
(default: pi/roverd/roverd.sample.yaml)
|
(default: pi/roverd/roverd.sample.yaml)
|
||||||
--mediamtx Install/download mediaMTX (binary, config, systemd unit)
|
--mediamtx Install/download mediaMTX (binary, config, systemd unit)
|
||||||
--mediamtx-version <v> Override mediaMTX release tag (default: 1.8.6)
|
--mediamtx-version <v> Override mediaMTX release tag (default: 1.15.3)
|
||||||
-h, --help Show this help text
|
-h, --help Show this help text
|
||||||
|
|
||||||
The script must run from the repository root and as root (sudo). It will:
|
The script must run from the repository root and as root (sudo). It will:
|
||||||
|
|||||||
Reference in New Issue
Block a user