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