[openbeos] Re: driver/module shutdown notification for R1

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Sat, 14 Jun 2003 15:40:10 +0200 CEST

"Waldemar Kornewald" <Waldemar.Kornewald@xxxxxx> wrote:
> Still, how do modules know that the system is shutting down?
> This was actually the source of my problem. PPP is a module in BONE 
> (and
> will be a module in OBOS, too). The PPP module must disconnect before 
> the
> system is shut down.
> I could write some application for that task and execute it in the 
> shutdown
> script, but when we go embedded (OBIA ;) it will be better to have 
> this in
> the kernel itself. And it is better not to rely upon scripts for jobs 
> that
> could be done automatically. This would be the next step to a 
> terrible
> Linux-I-script-everything-please-edit-me-with-a-text-editor-super-
> duper-comp
> licated-world! ;)

This will be taken care of for OpenBeOS :-)
Anyway, my current solution under BONE is to use a "UserShutdownScript" 
script in ~/config/boot and hang up the connection there.

Adios...
   Axel.


Other related posts: