Added make target for shutting down the connected P4wnP1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.PHONY: sync run ready exec all stop
|
||||
.PHONY: sync run ready exec all stop shutdown
|
||||
|
||||
TARGET = [email protected]
|
||||
PASSWD = toor
|
||||
@@ -40,5 +40,9 @@ stop:
|
||||
-@pkill key_extendr
|
||||
@echo "[i] Stopped all running jobs"
|
||||
|
||||
shutdown:
|
||||
-@sshpass -p "$(PASSWD)" ssh "$(TARGET)" 'shutdown now' > /dev/null 2>&1 || true
|
||||
|
||||
|
||||
## Sync and execute
|
||||
run: ready sync exec
|
||||
|
||||
Reference in New Issue
Block a user