General TC > General TC Talk

[Solved] What is "/etc/sysconfig/backup" file purpose?

(1/2) > >>

jazzbiker:
Hi, brothers in Core!

This is not the question of a big importance, just the wish to understand, what's under the hood. Grep'in gave me nothing, probably not the proper places were grep'ed. Can anybody cure my anxiety?

Thanks in advance and

Have a nice Core!

P.S. In the http://forum.tinycorelinux.net/index.php/topic,22054.0.html thread Rich explains BACKUP variable purpose, but what software do utilize it and what is the difference between BACKUP variable and /etc/sysconfig/backup file?

jazzbiker:
In the http://forum.tinycorelinux.net/index.php/topic,18970.0.html thread those BACKUP variable and /etc/sysconfig/backup file are discussed, gaining the theory, that these are (both, but they can differ?) the defaults for the X exit utility actions. But maybe something changed since 2015. I've changed in my ~/.profile

--- Code: ---export BACKUP=0
#[ "`id -un`" = "`cat /etc/sysconfig/tcuser`" ] && echo "$BACKUP" | sudo tee /etc/sysconfig/backup >/dev/null 2>&1

--- End code ---

but the default for X exit backup option is still "Safe". I am booting with "safebackup" bootcode.
So I still haven't found the impact.

jazzbiker:
Now after some experiments I accurately suppose, that BACKUP variable is used by exittc utility as default for "Backup option" field. And "safebackup" bootcode overrides this variable value. What's the use of /etc/sysconfig/backup not clear yet.

Rich:
Hi jazzbiker
I did a little poking around in TC4 and TC10 and did not find anyplace  /etc/sysconfig/backup  gets read.

My guess is it's a remnant from an early version of TC. It probably got replaced by  export BACKUP=1  but was
never removed.

jazzbiker:
Hi, Rich!

Thanks for Your answer and spending time on it. This file is written by .profile only for /etc/sysconfig/tcuser and  make sense only if You login as "tc", then logoff and relogin as somebody else and start X server. But... nobody home.

There are many useful tools under the TinyCore hood and it is just a fun trying to guess their meaning and purposes. Just like a little boy exploring father's room while father's gone working :-) Probably this file is some reminder about father's youth with unknown functions, so let's put it on its place and try to find something  amazing apart.

Thanks and best regards!

Seems, that topic can be marked as solved?

Navigation

[0] Message Index

[#] Next page

Go to full version