Last active
October 30, 2015 12:25
-
-
Save bmidgley/f9786b093ab334876a5b to your computer and use it in GitHub Desktop.
unbrick an hsmm router
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On your raspberry pi that is connected to the internet: | |
# assuming a wrt54gs | |
wget 'http://www.broadband-hamnet.org/download/firmware/link/310/bbhn-3.1.0-wrt54g-2.4-squashfs.bin' | |
sudo apt-get install -y tftp | |
cat > wrtftp << EOF | |
#!/bin/sh | |
if [ -z "$1" ]; then | |
echo "usage: wrtftp " | |
exit 1 | |
fi | |
cd `dirname $1` | |
tftp 192.168.1.1 << END | |
bin | |
rexmt 1 | |
trace on | |
timeout 3600 | |
put `basename $1` code.bin | |
END | |
EOF | |
#################### one-time setup above this line #################### | |
# Now the pi needs to be plugged into one of ports 1-4 on the linksys | |
sudo ifconfig eth0 192.168.1.10 | |
# turn on the router! | |
# and VERY quickly (you only have seconds) | |
# so maybe have this typed up and ready to go when you turn it on! | |
sh wrtftp bbhn-3.1.0-wrt54gs-2.4-squashfs.bin | |
# wait a few minutes, lights will flash and when they settle, it's finished |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment