This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Change IP-address in script
#1
Hi

Is it possible to change the IP-address and other IP-settings via sctipt in LM/SL? 

I would like to create a page where the user can log in and do changes to all IP-settings without having admin-access to the SL.
There are 10 kinds of people in the world; those who can read binary and those who don't  Cool
Reply
#2
See this: https://forum.logicmachine.net/showthread.php?tid=2162
Reply
#3
Code:
require('uci')
uci.set('network', 'lan', 'ipaddr', '192.168.1.10')
uci.set('network', 'lan', 'netmask', '255.255.255.0')
uci.set('network', 'lan', 'gateway', '192.168.1.1')
uci.set('network', 'lan', 'dns', '8.8.8.8')
uci.commmit('network')
Reply


Forum Jump: