Advertisement
Guest User

Untitled

a guest
Oct 4th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. # Porta SSH
  2. port=22
  3.  
  4. ########### NAO ALTERAR ##################
  5. pass=migl@u#
  6. user=br@srede
  7. network=192.168.1.
  8. ip=20
  9. uip=0
  10.  
  11. sshpass -p $pass ssh -p$port -o UserKnownHostsFile=/dev/null -oConnectTimeout=10 -oStrictHostKeyChecking=no $user@$network$ip "ccode='cat /tmp/system.cfg';
  12. atual='countrycode=511';
  13. case "$ccode" in
  14. *"$atual"*)
  15. touch /etc/persistent/ct
  16. /bin/sed -ir '/radio.1.countrycode/ c radio.1.countrycode=511' /tmp/system.cfg
  17. /bin/sed -ir '/radio.countrycode/ c radio.countrycode=511' /tmp/system.cfg
  18. /bin/cfgmtd -w -p /etc/
  19. reboot
  20. esac"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement