[Initng] initng disables the "reboot" and "shutdown" buttons

Denis Knauf deac at denkn.de
Wed Aug 6 09:25:20 CEST 2008


Am Mittwoch, 6. August 2008 07:07:55 schrieb Ricardo Garcia:
> On Tue, Aug 5, 2008 at 11:45 PM, Ismael Luceno <ismael.luceno at gmail.com> 
wrote:
> > It's a good question. If someone knows how to configure xfce4 to use
> > ngc, it would be nice to document it on trac. AFAIK as I know, it's
> > xfce4-session to call the shutdown command, it may or may not be
> > configurable...
>
> It happened to me once with KDE. IT has to do with the ACPI functions
> being disabled.
>
> Perhaps it has to do with initng as the version I installed didn't
> load /etc/modprobe.preload, but only /etc/modules. And the ACPI
> modules (including the BUTTON module which allows you to press the
> power button on your PC) were in modprobe.preload.
There's no reason for modprobe.preload. /etc/modprobe is enough to use.
Second, i don't know any distribution, which use this. Please refer it, 
because this patch should only work on this distri.

I think, you use a distri, which i didn't know, i wrote this scripts. So 
there're many things, which couldn't work.
By the way: reboot and halt are replaced by initng, it should work, too, but 
only on provided distribution. You can replace halt and reboot by a small 
script, like that:

/sbin/halt:
#!/bin/sh
case $(basename "$0") in
halt)  exec ngc -0 ;;
reboot) exec ngc -6 ;;
*) echo "Oooops? halt or reboot? Use me only as halt or reboot." >&2 ;;
esac

Create a link for reboot: # ln -s halt /sbin/reboot
All right? ;)

Denis Knauf.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://jw.dyndns.org/pipermail/initng/attachments/20080806/fb3564ac/attachment.pgp 


More information about the Initng mailing list