Package patch was attached: https://dev.openwrt.org/ticket/6081
Config file can now have several sections. Each can represent a specific wifi-device or "all". I will create a wiki entry for this package. Regards, Nuno Goncalves On Sun, Nov 1, 2009 at 17:52, OpenWrt <[email protected]> wrote: > #6081: Wifi toggle package propose > -------------------------------+-------------------------------------------- > Reporter: nuno...@… | Owner: developers > Type: enhancement | Status: new > Priority: normal | Milestone: Kamikaze > Component: packages | Version: Trunk > Keywords: | > -------------------------------+-------------------------------------------- > 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. > > -- > Ticket URL: <https://dev.openwrt.org/ticket/6081> > OpenWrt <http://openwrt.org> > Opensource Wireless Router Technology > -- \ Nuno Gonçalves / \ Bugs? Features! / \ [email protected] / PORTUGAL Sent from Coimbra, 06, Portugal _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
