Bekijk de volledige versie : /etc/resolve.conf cant be modify
I modify resolve.conf with vi to:
nameserver 192.168.0.1
After that:
flashfs save
flashfs commit
flashfs enable
After reboot resolve.conf has lost his new values.
Why? May be a web modification?
thanks all. And sorry with my english.
you have to add an entry for this file in /usr/local/.files else this file will not be modified on the flash...
you have to add an entry for this file in /usr/local/.files else this file will not be modified on the flash...
Excuse me! the file was added to /usr/local/.files
i'm using Oleg 1.9.2.7-5a and do:
[tase@asusjuan etc]$ cat /etc/resolv.conf
nameserver 192.168.0.1
[tase@asusjuan etc]$ cat /usr/local/.files
/etc/smb.conf
/etc/smbpasswd
/etc/smb.conf
/etc/smbpasswd
/etc/profile
/etc/resolv.conf
/etc/smb.conf
/etc/smbpasswd
[tase@asusjuan etc]$ flashfs save
tar: Removing leading '/' from member names
etc/smbpasswd
etc/smb.conf
etc/resolv.conf
etc/profile
etc/smbpasswd
etc/smb.conf
etc/smbpasswd
etc/smb.conf
tmp/local/
tmp/local/sbin/
tmp/local/sbin/post-boot
tmp/local/.files
tmp/local/etc/
tmp/local/etc/dropbear/
tmp/local/etc/dropbear/dropbear_dss_host_key
tmp/local/etc/dropbear/dropbear_rsa_host_key
tmp/local/root/
-rw-r--r-- 1 tase root 7711 Jan 1 06:31 /tmp/flash.tar.gz
Check saved image and type "/sbin/flashfs commit" to commit changes
[tase@asusjuan etc]$ flashfs commit
Commited.
[tase@asusjuan etc]$ flashfs enable
[tase@asusjuan etc]$ reboot
[After reboot]
[tase@asusjuan root]$ cat /etc/resolv.conf
nameserver 192.168.1.1
Why?
Yes, file is automatically generated using web settings. So, use web interface to change DNS server address.
This were the problem. In spain we've a expresion to this: if were a dog it bites you.
thanks Oleg.