On Tue, 2005-04-05 at 11:08 +0200, Marco d'Itri wrote: 
> Is this really needed? The script has to cope anyway with the file not
> being deleted because of a system crash.


Currently the script does not cope with that, SFAICT.

In ifupdown I dealt with the problem by creating an "ifupdown-clean"
script which gets run on shutdown by [06]:S36ifupdown, _and_ early on
bootup as S:S18ifupdown-clean.

I suggest that this also be done in the hotplug package.

Additionally, on installation ifupdown points /etc/network/run
to /dev/shm/network/ if possible.  In that case /etc/network/run is
empty on boot so active cleaning is not required.  Implementing that
required adding code to the ifupdown initscript and to the postinst in
order to create /dev/shm/network/ when necessary.  It is probably too
late to implement that in hotplug for sarge.

[EMAIL PROTECTED]:/etc$ ll rc?.d/*ifupdown*
lrwxr-xr-x  1 root root 18 2004-09-25 09:33 rc0.d/S36ifupdown -> 
../init.d/ifupdown*
lrwxr-xr-x  1 root root 18 2004-09-25 09:33 rc6.d/S36ifupdown -> 
../init.d/ifupdown*
lrwxr-xr-x  1 root root 24 2004-09-25 09:33 rcS.d/S18ifupdown-clean -> 
../init.d/ifupdown-clean*
lrwxr-xr-x  1 root root 18 2004-09-25 09:33 rcS.d/S39ifupdown -> 
../init.d/ifupdown*

-- 
Thomas Hood <[EMAIL PROTECTED]>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to