Changes

no edit summary
Line 159: Line 159:  
====UCI commit====
 
====UCI commit====
   −
In order for the changes to take effect, you must first send a UCI commit command. Continuing from the example above, lets commit the Wireless SSID changes. The command to do so looks like this:
+
In order to commit the changes from RAM to flash memory, you must first send a UCI commit command. Continuing from the example above, lets commit the Wireless SSID changes. The command to do so looks like this:
    
  {
 
  {
Line 174: Line 174:  
'''{"jsonrpc":"2.0","id":1,"result":[0]}'''
 
'''{"jsonrpc":"2.0","id":1,"result":[0]}'''
   −
</font>
+
====luci-reload====
 +
 
 +
The last step to take in order for the changes to take effect is the '''luci-reload''' command which restarts all the services relevant to our configuration. The '''luci-reload''' command looks like this:
 +
 
 +
  {
 +
  "jsonrpc": "2.0", "id": 1, "method": "call", "params":
 +
  [
 +
  "428a9fa57f1a391db0bd1b865fa16bb5", "file", "exec",
 +
  {
 +
  "command": "luci-reload"
 +
  }
 +
  ]
 +
  }
    
====Setting Multiple Parameters====
 
====Setting Multiple Parameters====
Line 201: Line 213:  
  }
 
  }
 
The command above will change the router's DHCP Server's current Start address, Address limit and Lease time values (highlighted in orange) to custom values provided in the '''"values"''' section of the command (highlighted in green).
 
The command above will change the router's DHCP Server's current Start address, Address limit and Lease time values (highlighted in orange) to custom values provided in the '''"values"''' section of the command (highlighted in green).
 +
 +
</font>