Changeset 1837

Show
Ignore:
Timestamp:
06/01/11 14:43:33 (2 years ago)
Author:
matthijs
Message:

luci: Use only one "fs" command in ConfigWanDelay?.

When reconfiguring the network after the wizard has run, a few fonstate
scripts were run. Before this was done using multiple "fs" command
executions, but it seems that this caused the fonstate scripts to be
enqueued in the wrong order (presumably because the fs command
daemonizes and thus completes asynchronously).

This changes the ConfigWanDelay? script to use a single fs commandline to
run all events, which should preserve the ordering of the scripts.

For some reason this problem does not seem to occur at other places
(GpioSwitch?, cbi). Perhaps the timing conditions are more favorable
there.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/luci/applications/luci-wizard-fonera2/root/etc/fonstated/ConfigWanDelay

    r1836 r1837  
    33local delay = uci:get("fon", "state", "cfgwandelay") 
    44if delay == "1" then 
    5         os.execute("fs -l ConfigWan") 
    6         os.execute("fs -l ConfigLan") 
    7         os.execute("fs -l ConfigWifi") 
    8         os.execute("fs -l RestartDnsmasq") 
    9         os.execute("fs -l ReconfOpenVPN") 
     5        os.execute("fs -l ConfigWan -l ConfigLan -l ConfigWifi -l RestartDnsmasq -l ReconfOpenVPN") 
    106else 
    117        uci:set("fon", "state", "cfgwandelay", "1")