basic.sh DHCP release patch

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

Post Reply
BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

basic.sh DHCP release patch

Post 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 539 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.
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: basic.sh DHCP release patch

Post by ispyisail »

why?

how would I use this in a real world example?

BashfulBladder
Moderator
Posts: 250
Joined: Thu Jan 17, 2013 11:43 pm

Re: basic.sh DHCP release patch

Post 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.
TP-Link WDR3600 v1.1 running 1.5.10+ L10n-English (Built 20130922 - OpenWrt r38093)
TP-Link WDR4300 running 1.5.10+ i18n-English (Built 20131010 - OpenWrt r38286)

https://github.com/BashfulBladder/gargoyle-plugins/wiki

Post Reply