summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachIR <zachir@librem.one>2023-01-10 15:49:53 -0600
committerZachIR <zachir@librem.one>2023-01-10 15:49:53 -0600
commitbd67e2661319955472319497e024663932e4a1db (patch)
treea51c744bef97688f6378a3d248f615ca85cb8115
parent9ab20abcd3e0f7172a4e94e6cf431b0b7f5d538e (diff)
update ups_ctl to wait better
-rwxr-xr-xups_ctl.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ups_ctl.sh b/ups_ctl.sh
index 9406fa4..2e33110 100755
--- a/ups_ctl.sh
+++ b/ups_ctl.sh
@@ -2,6 +2,9 @@
/usr/bin/expect -c "spawn ssh localadmin@$1
expect \"password:\"
send \"$3\r\"
+expect \"Last login:\"
+expect \"*from\"
+expect \"*wait...\"
expect \"*> \"
send \"device\r\"
expect \"*)> \"