What's new

how to change a value in config files

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

WildWurger

Occasional Visitor
Hi all,

I have a question, while i know that lets say i want to add a configuration, i can simply add a .add behind the config files, but it doesnt change the value, just add a line at the bottom.

but i do not want to replace the whole file, is there any way to do it?

what i want to achieve is i wanted to make a change in dnsmasq over the dhcp-option to add another DNS server.

however by using .add, it wont change the value, it simple add a line at the bottom which will not take effect i think...

Thanks
 
Its actually pretty easy to copy the whole dnsmasq.conf file to the /jffs/configs and make the change there so that it will be permanent.

Telnet/SSH in
Copy /tmp/etc/dnsmasq.conf over to /jffs/configs

vi is the text editor. You will need to open up the man page for vi because of the commands that it uses.

Run vi /jffs/configs/dnsmasq.conf

Edit the line you need and save and quit. Obviously you will have to have enabled jffs in order for this to work.
 
if you don't use the asus optware

install entware, and download nano
it's much easier to use, than vi
for editing files
 
if you don't use the asus optware

install entware, and download nano
it's much easier to use, than vi
for editing files

nano is also available under Optware tho (thank God, as I need it for my AC56U too :) )
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top