From 65797379cc74ee2bd2236fc1a18a9c2033046bbb Mon Sep 17 00:00:00 2001 From: lucca Date: Thu, 16 Jul 2026 08:01:28 -0400 Subject: [PATCH] added vivestations command --- homeassistant/commands/vivestations.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 homeassistant/commands/vivestations.sh diff --git a/homeassistant/commands/vivestations.sh b/homeassistant/commands/vivestations.sh new file mode 100755 index 0000000..5f1121d --- /dev/null +++ b/homeassistant/commands/vivestations.sh @@ -0,0 +1,13 @@ +#!/bin/bash +SOURCE="${BASH_SOURCE[0]}" +while [ -L "$SOURCE" ]; do + DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)" + SOURCE="$(readlink "$SOURCE")" + [[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE" +done + +SCRIPT_DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)" +cd "$SCRIPT_DIR" + +../switch.sh office_vive_base_1 $1 +../switch.sh office_vive_base_2 $1