Date: Tue, 05 Nov 2002 12:22:31 -0800 From: Mike Hogsett <hogsett@csl.sri.com> To: "Carlos Carnero" <zopewiz@yahoo.com>, "DaleCo Help Desk" <daleco@daleco.biz> Cc: freebsd-questions@freebsd.org Subject: Re: Junior hacker assignment :o Message-ID: <200211052022.gA5KMV1J037280@axp.csl.sri.com> In-Reply-To: Your message of "Tue, 05 Nov 2002 14:14:26 CST." <01ca01c28507$f187a860$fa00a8c0@DaleCoportable>
next in thread | previous in thread | raw e-mail | index | archive | help
> ----- Original Message ----- > From: "Carlos Carnero" <zopewiz@yahoo.com> > To: "DaleCo Help Desk" <daleco@daleco.biz>; "FreeBSD Questions" > <freebsd-questions@FreeBSD.ORG> > Sent: Tuesday, November 05, 2002 2:07 PM > Subject: Re: Junior hacker assignment :o > > > > Hello, > > > > --- DaleCo Help Desk <daleco@daleco.biz> 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 majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211052022.gA5KMV1J037280>