- local oif = uci:t_add("olsr", "Interface")
- uci:t_set("olsr", oif, "Interface", "ff")
- uci:t_set("olsr", oif, "HelloInterval", "6.0")
- uci:t_set("olsr", oif, "HelloValidityTime", "108.0")
- uci:t_set("olsr", oif, "TcInterval", "4.0")
- uci:t_set("olsr", oif, "TcValidityTime", "324.0")
- uci:t_set("olsr", oif, "MidInterval", "18.0")
- uci:t_set("olsr", oif, "MidValidityTime", "324.0")
- uci:t_set("olsr", oif, "HnaInterval", "18.0")
- uci:t_set("olsr", oif, "HnaValidityTime", "108.0")
+ cfg.olsr[""] = "Interface"
+ cfg.olsr[""].Interface = "ff"
+ cfg.olsr[""].HelloInterval = "6.0"
+ cfg.olsr[""].HelloValidityTime = "108.0"
+ cfg.olsr[""].TcInterval = "4.0"
+ cfg.olsr[""].TcValidityTime = "324.0"
+ cfg.olsr[""].MidInterval = "18.0"
+ cfg.olsr[""].MidValidityTime = "324.0"
+ cfg.olsr[""].HnaInterval = "18.0"
+ cfg.olsr[""].HnaValidityTime = "108.0"