PDA

View Full Version : How to restore /etc/init.d/shutdown script?



lemuriens
January 24th, 2011, 08:30 PM
Hello all,

I was copying a script to /etc/init.d/ and I accidentally overwrote the shutdown script. Is there a package I can reinstall through apt to correct this error?

Thanks!

Claus7
January 24th, 2011, 08:33 PM
Hello,

I would start reinstalling initscripts package from synaptic.

Hope it helps,
Regards!

lemuriens
January 25th, 2011, 08:40 PM
I tried this but still no /etc/init.d/shutdown file. Is there another copy elsewhere, or one I could download?

Claus7
January 26th, 2011, 12:28 PM
Hello,

searching my ubu box about shutdown this is what I got:

/usr/share/gnome/shutdown
/sbin/shutdown

I should go to synaptic and choose the upstart package to be reinstalled.

Inside /etc/init.d files I was not able to find one with that name...

Regards!