i want the cdrom to be ejected after all files have been copied on RAM and at the point whrer the boot process begins from ram....
I have located the scripts that run after the copy is done, and i am incorporating this script in that file...
I really dont mind if the ejection happens as soon as the copy is done or when the gui is up...I just want it to happen ,thats all.
This is what i do,
echo "changing user, and ejecting " >/dev/msglog
exec su - root -c eject 2>/dev/msglog &
if [ $? -eq 0 ];then
echo "how was it??" >/dev/msglog
echo "unlucky soul" >/dev/msglog
The strange thing is ,if i make a script out of it,and then execute it as an ordinary user...(once the gui is up)it works flawlessly,
There is a momentary change in the user and then the eject happens , then i am taken back to ord user...
But if i try using this in the boot script i get no errors but still the ejection wont happen??
If its easier to perform this action once the gui is up, am ready to give that a try as well...
Could you please specify as to,howi can do it?