Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: letian on February 23, 2012, 03:35:04 PM
-
I'm trying to write into /etc/ppp/ directory, but of course its impossible and gives me the message "read only filesystem".
How can I write to /etc/ppp/pppoe.conf?
sudo $EDITOR /etc/ppp/pppoe.conf won't save the file, but how do a user set up dsl connection then?
-
Hi letian
Try this:
After editing save the file as /etc/ppp/pppoe.conf.new.
sudo mv /etc/ppp/pppoe.conf.new /etc/ppp/pppoe.conf
Edit the file /opt/.filetool.lst and add the line etc/ppp/pppoe.conf
Click on Control Panel and run a backup.
-
It is not the best practice to use /etc in TC. Better place is /usr/local/etc. If it is really a must have, I would prefere a symlink.
-
A bit an awkward situation as IIRC the maintainer of 'pppoe.tcz' has "left the building". I'm not sure to which degree '/usr/local/etc' would work, and my guess is that the more experienced maintainers don't use a PPPOE connection (which would allow them to test the extension).
Having said this maybe someone would still "adopt" the extension and either tries his luck with '/usr/local/etc' or uses the following approach instead:
(1) rename '/etc/ppp/pppoe.conf' to '/etc/ppp/pppoe.conf.sample'
(2) add the following to '/usr/local/tce.installed/pppoe': [ -f /etc/ppp/pppoe.conf ] || cp -p /etc/ppp/pppoe.conf.sample /etc/ppp/pppoe.conf
This should allow for either a user-specific config file to persist (provided it is included in the backup) or otherwise have at least a writeable file in the right place.