diff options
Diffstat (limited to 'routers.sh')
-rwxr-xr-x | routers.sh | 17 |
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 |