FAI scripts and automatic backups by editors

Geert Stappers Geert.Stappers at xs4all.nl
Mon Jun 3 19:16:08 CEST 2002


At 14:40 +0200 6/3/02, Thomas Lange wrote:
>>>>>> On Mon, 3 Jun 2002 15:30:45 +0300, Arto Teras <arto.teras at hip.fi> said:
>
>    > The automatic creation of backup files in some editors (in this
>    > case emacs) easily causes problems here. For instance I edited
>    > the script S40 under directory NETWORK and emacs copied the old
>    > one to name S40~. FAI executed both of them, the "backup" one
>    > thus overriding the settings of the "correct" S40.
>If you use CVS, no ~ files are created. This is what I do, so I didn't
>catch this bug. I will implement a patch for the next version.
>
>This will be the new line in task_configure()
>
>for f in `ls $class/S[0-9]*[^~]` ; do
>
>What about %, .bak and other suffixes ?
>

Yes, editors who create backup files have there drawback.

please keep the line
 for f in `ls $class/S[0-9]*` ; do


and take a look at /etc/rc2.d


Geert




More information about the linux-fai mailing list