> ----- Original Message -----
> From: "Carlos Carnero" <[EMAIL PROTECTED]>
> To: "DaleCo Help Desk" <[EMAIL PROTECTED]>; "FreeBSD Questions"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, November 05, 2002 2:07 PM
> Subject: Re: Junior hacker assignment :o
> 
> 
> > Hello,
> >
> > --- DaleCo Help Desk <[EMAIL PROTECTED]> wrote:
> > > I suppose you want to read the code in
> > > /usr/src/sbin/shutdown/shutdown.c
> >
> > in the (appropiately named? :) function
> > die_you_gravy_sucking_pig_dog() rebooting means
> > sending init a INT signal... I'll heck init (and
> > that's kernel turf right?)
> >
> > Thanks a lot,
> > Carlos.
> >
> Is that 'check init' or 'hack init'?
> 
> <ifIWasAGoodCProgrammer>
>         I might just alter shutdown so it took an
>     additional argument to -r---- along the lines
>     of   shutdown -r  [when-die] [when-resurrect]
> </ifIWasAGoodCProgrammer>
> 
>     .....but I'm just a converted Windoze Luser and
> amateur sysadmin, so you're getting beyond me
> here.  If the OS is shut down, then the kernel's shut down,
> right, and how's it gonna count seconds 'til Resurrection Day?

Well whatever function the kernel is in while it loops, polling the
keyboard asking "press any key to reboot" could have additional logic for
a countdown timer to reboot.  How and where to do this?  I don't know.

Good Luck,

 - Mike










To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to