Hi friends!
My question to developers. I want to study more things to find the answer myself. I think, one of authors of SliTaz init scripts can answer me much faster than I can do myself ;)
Answering this topic Problem with Xes (in Russian) I found if we run writefs then we get non-portable version of SliTaz suitable only for current video card. The problem is in the /etc/X11/xorg.conf.d/60-Device.conf that contain setting for video card. While original SliTaz rootfs contain only /etc/X11/xorg.conf.d/{35-synaptics.conf|40-evdev.conf|90-DRI.conf} and other configs creates on the fly on boot. So, I think we should not save new config files in this folder and should remove/move these files before writefs to have ability to run our customizable portable USB-Stick based SliTaz on other boxes.
In other hand—I see next code:
gettext "Removing current screen resolution..."
rm -f /etc/X11/screen.conf ;;
Finally, my question ;)
What is the purpose of a file /etc/X11/screen.conf? Is it (legacy) config file? In my current system I have this zero-length file. Or, maybe, it is flag-file for any config script? Or, maybe, something else—
Screen resolution generally set correct automatically, so I think we don't need question "Do you wish to remove the screen resolution (No/yes/exit) ? ". Maybe, we need another question instead, like this: "Do you wish to remove current video settings?" and filter generated list (/tmp/list) from these files (50-Monitor.conf; 60-Device.conf; 70-Screen.conf).
It is not difficult to implement in the code, but I want to understand the concept. Thanks for reading!