Modify

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#6081 closed enhancement (fixed)

Wifi toggle package propose

Reported by: nunojpg@… Owned by: nunojpg
Priority: normal Milestone: Backfire 10.03.1
Component: packages Version: Trunk
Keywords: Cc:

Description

I've coded a wifi toggle script from scratch that allows the following configuration with a UCI file:

config wifitoggle

option button "BTN_1" #Button to toggle state

# option action "pressed" #Button action to toggle state
# option persistent 0 #Commit changes to wireless config file, persistent after reset. Always 0 if Timer enabled.
# option timer 0 #Turn off wireless after N seconds

option led_sysfs wrt160nl\:blue\:wlan #signal state with this led

# option led_enable_default 1 #led state for wifi enabled
# option led_enable_trigger none
# option led_enable_dev ""
# option led_enable_mode link
# option led_enable_delayon 0
# option led_enable_delayoff 0

# option led_disable_default 1 #led state for wifi disabled
# option led_disable_trigger none
# option led_disable_dev ""
# option led_disable_mode link
# option led_disable_delayon 0
# option led_disable_delayoff 0

Commented options are the default values.
Most distinct improvement is "Timer" option, when we just need to use wireless for a finite period, and want to make sure it remains off for the rest of the time(energy and security). Most usefull if the finite period is less than the period to human extinction.
Persistent option is also very usefull.

Please comment.

Attachments (3)

wifitoggle.txt (639 bytes) - added by nunojpg@… 8 years ago.
config file
30-wifitoggle.txt (4.9 KB) - added by nunojpg@… 8 years ago.
hotplug script
patch.diff (7.1 KB) - added by nunojpg@… 8 years ago.
package

Download all attachments as: .zip

Change History (9)

Changed 8 years ago by nunojpg@…

config file

Changed 8 years ago by nunojpg@…

hotplug script

comment:1 Changed 8 years ago by nunojpg@…

If no comments are added, I will submit the patch as soon as I return to the office, in 7 days.

comment:2 Changed 8 years ago by anonymous

Hmm, is it generic enough for mac80201 drivers?

comment:3 Changed 8 years ago by edgar.soldin@…

this
https://dev.openwrt.org/ticket/5256
should be generic. It does the same as above but without timer or uci config. It uses the wifi script for toggling an should therefor work with all wireless drivers.

... ede

Changed 8 years ago by nunojpg@…

package

comment:4 Changed 7 years ago by nunojpg

  • Owner changed from developers to nunojpg
  • Status changed from new to assigned

comment:5 Changed 7 years ago by nunojpg

  • Resolution set to fixed
  • Status changed from accepted to closed

package commited at [21093]

comment:6 Changed 7 years ago by nico

  • Milestone changed from Kamikaze to Backfire 10.03.1

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.