mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 21:24:20 +01:00
Some rpc_shutdown improvments (#186)
* Update run.sh * Update config.json * Update config.json
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
{
|
||||
"name": "RPC Shutdown",
|
||||
"version": "0.1",
|
||||
"version": "0.2",
|
||||
"slug": "rpc_shutdown",
|
||||
"description": "Simple way for remote windows shutdowns",
|
||||
"url": "https://home-assistant.io/addons/rpc_shutdown/",
|
||||
"startup": "services",
|
||||
"boot": "auto",
|
||||
"stdin": true,
|
||||
"host_network": true,
|
||||
"options": {
|
||||
"computers": [
|
||||
{
|
||||
|
||||
@@ -7,6 +7,8 @@ COMPUTERS=$(jq --raw-output '.computers | length' $CONFIG_PATH)
|
||||
|
||||
# Read from STDIN aliases to send shutdown
|
||||
while read -r input; do
|
||||
# remove json stuff
|
||||
input="$(echo "$input" | jq --raw-output '.')"
|
||||
echo "[Info] Read alias: $input"
|
||||
|
||||
# Find aliases -> computer
|
||||
|
||||
Reference in New Issue
Block a user