Re: [PATCH] call drv->shutdown at rmmod

From: Russell King (rmk_at_arm.linux.org.uk)
Date: 08/14/03

  • Next message: Matt Mackall: "Re: [PATCH] cryptoapi: Fix sleeping"
    Date:	Thu, 14 Aug 2003 17:40:08 +0100
    To: Christoph Hellwig <hch@infradead.org>, "Eric W. Biederman" <ebiederm@xmission.com>, Pavel Machek <pavel@suse.cz>, Greg KH <greg@kroah.com>, linux-kernel@vger.kernel.org
    
    

    On Thu, Aug 14, 2003 at 09:06:05AM +0100, Russell King wrote:
    > That's likely to remove the keyboard driver, and some people like
    > to configure their box so that ctrl-alt-del halts the system, and
    > a further ctrl-alt-del reboots the system once halted.

    Several people have asked me how to set this up, so I'll give the info
    here.

    - change inittab to call shutdown with -h instead of -r
    - telinit Q

    I think there is a catch on x86 though - I think shutdown -h powers the
    machine down rather than halting it. The redhat initscripts seem to
    need a /halt file to prevent poweroff. Maybe calling /sbin/halt
    instead of shutdown from the initscripts would work better in those
    cases...

    -- 
    Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
                 http://www.arm.linux.org.uk/personal/aboutme.html
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Matt Mackall: "Re: [PATCH] cryptoapi: Fix sleeping"

    Relevant Pages

    • Re: New consolidate irqs vs . probe_irq_*()
      ... there is simply no case there where the interrupt informations ... it seems that I need to add startup& shutdown() ... callbacks to all my irq controllers so they do the equivalent of enable ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.4.29, e100 and a WOL packet causes keventd going mad
      ... sending a WOL-packet to computer with a e100 NIC which is already ... 0000:02:08.0 Ethernet controller: Intel Corp. 82562EZ 10/100 Ethernet ... if I do a "shutdown -h" on the machine after sending a WOL packet ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 1/7] i8042 suspend
      ... > We should be checking the return value from the TEST command as well, ... > CTR setting before we save it, ... shutdown and don't fail the entire process when there are non-clitical errors. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Q: swsusp with S5 instead of S4?
      ... > I found out that 'shutdown' is the default and that I was already using ... Strange. ... > immediately after control is passed to the resumed system, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux Kernel 2.6.6 IDE shutdown problems.
      ... >> shutdown that it might cause corruption. ... > why not add a one or two second delay before? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)