Show
Ignore:
Timestamp:
03/16/09 18:42:39 (4 years ago)
Author:
jow
Message:

applications/luci-ffwizard-leipzig: write watchdog config on olsr setup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/applications/luci-ffwizard-leipzig/luasrc/model/cbi/ffwizard.lua

    r4260 r4340  
    285285    olsrbase.ignore    = "0" 
    286286    uci:section("olsrd", "Interface", nil, olsrbase) 
    287     uci:save("olsrd") 
     287 
     288    -- Delete old watchdog settings 
     289    uci:delete_all("olsrd", "LoadPlugin", {library="olsrd_watchdog.so.0.1"}) 
     290 
     291    -- Write new watchdog settings 
     292    uci:section("olsrd", "LoadPlugin", nil, { 
     293        library  = "olsrd_watchdog.so.0.1", 
     294        file     = "/var/run/olsrd.watchdog", 
     295        interval = "30" 
     296    }) 
    288297 
    289298    -- Import hosts 
     
    291300        uci:set("dhcp", s[".name"], "addnhosts", "/var/etc/hosts.olsr") 
    292301    end) 
     302 
     303    uci:save("olsrd") 
    293304    uci:save("dhcp") 
    294305end