aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-09-19 13:25:14 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-09-19 13:25:14 +0200
commit1dae42389b97b27e6c11d5bb093270e07e6fe05e (patch)
tree2e7a64b0ce577c26267ee3f0c352c016d607177e
parent579b856757964efe4fa65b196019ebd1c1737160 (diff)
downloadturris-tetris-1dae42389b97b27e6c11d5bb093270e07e6fe05e.tar.gz
turris-tetris-1dae42389b97b27e6c11d5bb093270e07e6fe05e.tar.bz2
turris-tetris-1dae42389b97b27e6c11d5bb093270e07e6fe05e.zip
Add routers access script
-rwxr-xr-xrouters.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/routers.sh b/routers.sh
new file mode 100755
index 0000000..f84faeb
--- /dev/null
+++ b/routers.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+#ROUTERS="1 159 190 156 104 199 136 173 245 172"
+ROUTERS="1 159 189 156 104 199 135 171 244 172"
+
+I=0
+
+for R in $ROUTERS; do
+ echo "=== Runnining on 192.168.1.$R ==="
+ ssh -i ~/router root@192.168.1.$R -- $@
+ #scp -i ~/router user.lua root@192.168.1.$R:/etc/updater/user.lua
+ #ssh -i ~/router root@192.168.1.$R -- uci set turtetris.line=$I
+ #ssh -i ~/router root@192.168.1.$R -- /etc/init.d/turtetris-slave restart
+ #I=$(expr $I + 1)
+done
+
+#ssh-copy-id -i ~/router root@192.168.1.$R