• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/netifd/examples/proto/example.uc

  1 netifd.add_proto({
  2         name: "example",
  3 
  4         config: function(ctx) {
  5                 return {
  6                         server: ctx.uci.get("network", ctx.section, "server"),
  7                 };
  8         },
  9 
 10         setup: function(proto) {
 11                 proto.update_link(true, { ifname: proto.device });
 12         },
 13 
 14         teardown: function(proto) {
 15                 proto.update_link(false);
 16         },
 17 });

This page was automatically generated by LXR 0.3.1.  •  OpenWrt