OpenWrt mass configure simple script

#!/bin/bash
cmd=". /etc/profile; $1; exit;"
echo $cmd

for i in 1 2 4 7 9 10 11
do
 ssh -i /root/.ssh/id_rsa 192.168.98.$i $cmd </dev/null

done
sh remote_exec.sh  "uci set wireless.@wifi-device[0].isolate=1"
sh remote_exec.sh  "logread -l 1000|grep bc:cf:cc:74:d0:11"

Leave a Reply

Your email address will not be published. Required fields are marked *