Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.19 KB | None | 0 0
  1. function lxc_call(lxc_action, lxc_name)
  2.  luci.http.prepare_content("application/json")
  3.  
  4.  local rv = ubus:call("lxc", lxc_action, { name = lxc_name })
  5.  
  6.  luci.http.write(tostring(res))
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement