From df0ffeecbdda05f6326af315bdc39aa8d8329e24 Mon Sep 17 00:00:00 2001 From: Oliver Ladner Date: Wed, 11 Sep 2024 22:43:59 +0200 Subject: [PATCH] revert: move toggle_delock_light.sh to scripts repo --- toggle_delock_light.sh | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100755 toggle_delock_light.sh diff --git a/toggle_delock_light.sh b/toggle_delock_light.sh deleted file mode 100755 index 2eb7e07..0000000 --- a/toggle_delock_light.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash -# -# Highly specific script -# -# Logs in to jumphost, that miraculously is the only host being able to reach -# the powerline-connected WiFi switch. It grabs the Delock switch's current IP -# address based on its MAC address and sents the Tasmota command to toggle the -# switch ON/OFF - -jumphost_addr=n.n.n.n -jumphost_user=jumphostuser -target_mac="" -ssh $jumphost_user@$jumphost_addr "/sbin/arp -n | grep $target_mac | awk {'print \$1'} | xargs -I _ curl -s http://_/cm?cmnd=Power%20TOGGLE"