Tiny Core Linux
Tiny Core Base => Micro Core => Topic started by: sosjozsef on December 29, 2011, 10:14:29 PM
-
Sorry, I speak a little English.
The /opt/.filetool.lst file last line is:
etc/hosts
Run: filetool.sh -b
Reboot. Not saved (backup) /etc/hosts file. Why?
-
Which MC version?
-
See /opt/bootsync.sh and /usr/bin/sethostname.
-
Which MC version?
The Core Project Version 4.2
-
See /opt/bootsync.sh and /usr/bin/sethostname.
hosts:
127.0.0.1 box localhost
bootsync.sh:
/usr/bin/sethostname box
/usr/bin/sethostname sos
Reboot.
tc@sos
hosts:
127.0.0.1 sos localhost
I would like hosts file after reboot:
127.0.0.1 box
127.0.0.1 sos
-
Overwrite at boot? One line in bootlocal.sh
-
Overwrite at boot? One line in bootlocal.sh
The bootlocal.sh is empty and the bootsync.sh is:
/usr/bin/sethostname box
/usr/bin/sethostname sos
...
My hosts file is:
127.0.0.1 sos localhost
I would like:
127.0.0.1 box localhost
127.0.0.1 sos localhost
Need Apache Virtual Host.
-
Solved.
/opt/bootlocal.sh:
cp -f /home/tc/.hosts /etc/hosts
/home/tc/.local/bin/re:
cp -f /etc/hosts /home/tc/.hosts
filetool.sh -b
sudo reboot