[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CDRW UDF file system scripts



On Fri, Jan 31, 2003 at 05:31:05AM -0800, Roy Pluschke wrote:
> The only problem is shutting down without unmounting -- the packet-CD
> driver process is terminated before the attempt to umount the drive and
> so the shutdown just hangs.
> 
> I don't know how to change the shutdown scripts in a debian friendly 
> way so that the driver persists until umount is called. Solutions that
> I have come up with will be over-written when the boot/shutdown scripts
> deb (whatever it is) is updated. 

Well, unless something really horrible is happening, as I understand
it, when you update said deb it won't touch any rc?.d links it doesn't
know about. For example, if I had an entry /etc/rc2.d/S20eggturnerd to
start the egg-turning daemon on bootup, then I would *expect* dpkg to
realise that deleting something it doesn't know about will probably
break something, and jolly well leave it alone (unlike Windoze
installers).

So you could create a script, say in /etc/init.d/umountUDF, to umount
the CD drive, and create a link to it /etc/rc6.d/Kxxumountudf,
choosing xx so that this script is run immediately before the one to
kill the packet-CD driver.

Course, if this DOESN'T work, no doubt someone will say so... don't
see why it shouldn't though.

Pigeon



Reply to: