Skip to content

Instantly share code, notes, and snippets.

@corny
Last active July 12, 2016 08:22
Show Gist options
  • Save corny/67bd780d5f65931bb33e1de391a0a255 to your computer and use it in GitHub Desktop.
Save corny/67bd780d5f65931bb33e1de391a0a255 to your computer and use it in GitHub Desktop.
Breminale flasher
#!/bin/bash -e
remote=$1
options="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=15 -o ServerAliveInterval=10"
filename=gluon-ffhb-2016.1.5+breminale1-tp-link-tl-wdr3600-v1-sysupgrade.bin
scp $options /tmp/$filename "root@[$remote]:/tmp/"
ssh $options "root@$remote" "sysupgrade -n /tmp/$filename"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment