Shell Upgrading a D-Link DIR-1960 router

I am trying to install OpenWrt on a D-Link DIR-1960 router. The full story is here:-


I'm told that
the recovery web page only works on Windows
on Linux it will not work in a browser

I don't understand the reason for this but am told there is a workround for Linux:-


Can anyone suggest whether these instructions, maybe slightly modified, might work on FreeBSD?
 
Doess this mean anything to anyone?

Code:
sudo ip route add 192.168.0.1 dev eno1 quickack 1
curl -v -H "Expect:" -F "firmware=@recovery.bin" http://192.168.0.1/
sudo ip route del 192.168.0.1 dev eno1
 
The ip commands translate to something like sudo route add 192.168.0.1 -iface em0 and sudo route delete 192.168.0.1. The curl(1) command should be the same.
 
The ip commands translate to something like sudo route add 192.168.0.1 -iface em0 and sudo route delete 192.168.0.1. The curl(1) command should be the same.
The quickack 1 part has no route flag on FreeBSD, but you can get the same effect for the upload with sysctl net.inet.tcp.delayed_ack=0 and set it back to 1 afterwards.
 
When I try running the command with the suggested changes I get

401 Not Authorized
You need proper authorization to use this resource

Sounds like I need to find a way to logon somehow to run this.
 
Back
Top