Page 1 of 1

basic.sh DHCP release patch

Posted: Tue Feb 26, 2013 12:10 am
by BashfulBladder
The existing DHCP renew button asked for the same IP address. This patch adds a DHCP Release button & a redone DHCP Renew button. Note your ip (I have a shell with the output of ifconfig eth0.2 showing the ip), click DHCP Release - wait a few minutes, click DHCP Renew. Hopefully a new IP.

And a small checkbox to reveal wlan passwords.
basic.patch.zip
(3.19 KiB) Downloaded 544 times
No need to update firmware, apply the patch to a fresh copy of each of the files & just scp the files over to /tmp. mv originals someplace safe & mv the new files into place.

Re: basic.sh DHCP release patch

Posted: Wed Feb 27, 2013 1:51 am
by ispyisail
why?

how would I use this in a real world example?

Re: basic.sh DHCP release patch

Posted: Wed Feb 27, 2013 7:52 am
by BashfulBladder
password reveal:

I am at a DR table with a guest who wants wifi access. I have WPA2 protection on. Its something that I can remember, but the capitalization & number sequence - I'm sketchy. I have the iPad nearby. It doesn't have ssh access - only the web interface. But of course, I can't read the password because its bullets. So I have to go schlep upstairs to my main computer to get the password, when really the iPad could have been able to show me what password to give - if only there weren't bullets.

That's why I needed a checkbox - I didn't want to ssh in & type uci show wireless. iPad wouldn't show it to me for another wireless device.
-----------------------------
DHCP release:

I am on Verizon. They bind MAC addresses to a 2hr DHCP lease at the Optical Network Terminal (the ONT). You can swap routers and not have a 2hour internet blackout - but you need to release the DHCP lease before swapping. I can do it on the command line - send the signal to the udhcpc. But, I have a finely crafted lazy attitude - and I want a button to make my life easier. Not that I change routers that often...

http://www.dslreports.com/faq/15898

Also, when downloading from a filelocker site that gives you a generous 1 download per day, changing the IP address allows them to be MORE generous.