> > Is there another way to handle this event? >> > > A userland BApplication gets a B_QUIT_REQUESTED message with a boolean > "_shutdown_" field. So you could use a helper background application that > notifies the driver via ioctl(). That doesn't work for "shutdown -q", > though. > You could add a call to a appositely done executable in /boot/home/config/boot/UserShutdownScript to notify the shutdown, which should work in all situations.