aboutsummaryrefslogtreecommitdiff
path: root/routers.sh
blob: aebc0cfb42a5086822c91f149f7d97315e2932d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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