Changeset 30832 for packages


Ignore:
Timestamp:
2012-03-07T12:47:48+01:00 (5 years ago)
Author:
jow
Message:

Add enabled option to multiwan

Hi

Attached modified patchs for multiwan and luci-app-multiwan

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@…>

Le 19/12/2011 18:30, Etienne Champetier a écrit :

Hi

Here follows the patch for luci multiwan package
I've also opened a ticket on the luci trac

Regards

Le 19/12/2011 16:38, Etienne Champetier a écrit :

Hi

The only mean to disable multiwan is to delete the symlink in /etc/rc.d, but if you make a backup and restore it you have to re-delete the symlink.

This small patch add an "enabled" option to multiwan script.

It will allow me to have one image per router model, not one with multiwan and one without.

Best regards

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@…>

_
openwrt-devel mailing list
openwrt-devel@…
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

_
openwrt-devel mailing list
openwrt-devel@…
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Location:
packages/net/multiwan
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • packages/net/multiwan/Makefile

    r30677 r30832  
    99 
    1010PKG_NAME:=multiwan 
    11 PKG_VERSION:=1.0.19 
     11PKG_VERSION:=1.0.20 
    1212PKG_RELEASE:=1 
    1313 
     
    4040endef 
    4141 
     42define Package/multiwan/postinst 
     43[ -n "$${IPKG_INSTROOT}" ] || /etc/init.d/multiwan enable 
     44exit 0 
     45endef 
     46 
    4247$(eval $(call BuildPackage,multiwan)) 
  • packages/net/multiwan/files/etc/config/multiwan

    r23388 r30832  
    11 
    22config 'multiwan' 'config' 
     3        # REMOVE THIS LINE OR PUT TO 1 TO ENABLE MULTIWAN 
     4        option 'enabled' '0' 
     5 
    36        option 'default_route' 'balancer' 
    47        # health_monitor below is defaulted to parallel, and can be set to 
  • packages/net/multiwan/files/usr/bin/multiwan

    r23388 r30832  
    10121012config_clear 
    10131013config_load "multiwan" 
     1014config_get_bool enabled config  enabled '1' 
     1015[ "$enabled" -gt 0 ] || exit 
    10141016config_get default_route        config default_route 
    10151017config_get health_monitor       config health_monitor 
Note: See TracChangeset for help on using the changeset viewer.