Re: Junior hacker assignment :o

2002-11-05 Thread Dave McCammon
--- Dave McCammon <[EMAIL PROTECTED]> wrote: > --- Mike Hogsett <[EMAIL PROTECTED]> wrote: > > > > > > Look in /usr/src/sys/kern/kern_shutdown.c > > > > static void > > shutdown_halt(void *junk, int howto) { > > ... > > } > > > > Looks interesting. > > > > - Mike > > > > > Hi, > > > > > >

RE: Junior hacker assignment :o

2002-11-05 Thread andrew . boring
> -Original Message- > From: DaleCo Help Desk [mailto:daleco@;daleco.biz] > If the OS is shut down, then the kernel's shut down, > right, and how's it gonna count seconds 'til Resurrection Day? I'm going out on a limb here, but there is an article in SysAdmin magazine that discusses the

Re: Junior hacker assignment :o

2002-11-05 Thread Dave McCammon
--- Mike Hogsett <[EMAIL PROTECTED]> wrote: > > > Look in /usr/src/sys/kern/kern_shutdown.c > > static void > shutdown_halt(void *junk, int howto) { > ... > } > > Looks interesting. > > - Mike > > > Hi, > > > > --- Mike Hogsett <[EMAIL PROTECTED]> wrote: > > > Well whatever function the ker

Re: Junior hacker assignment :o

2002-11-05 Thread Fernando Gleiser
On Tue, 5 Nov 2002, DaleCo Help Desk wrote: > > With a second look, you say "(configurable)" so > I guess the -r switch isn't enough. > > I suppose you want to read the code in > /usr/src/sbin/shutdown/shutdown.c Nope. This is the code to the shutdown command, which tells the kernel to shut down.

Re: Junior hacker assignment :o

2002-11-05 Thread Mike Hogsett
Look in /usr/src/sys/kern/kern_shutdown.c static void shutdown_halt(void *junk, int howto) { ... } Looks interesting. - Mike > Hi, > > --- Mike Hogsett <[EMAIL PROTECTED]> wrote: > > Well whatever function the kernel is in while it > > loops, polling the > > keyboard asking "press any key t

Re: Junior hacker assignment :o

2002-11-05 Thread Carlos Carnero
Hi, --- Mike Hogsett <[EMAIL PROTECTED]> wrote: > 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. Great! > How and where to do this? I don't know. Not so great ;)

Re: Junior hacker assignment :o

2002-11-05 Thread Carlos Carnero
Hi, > Is that 'check init' or 'hack init'? Um... at this moment make that 'check'. Hopefully I can change it to 'hack' in the future :) > > I might just alter shutdown so it took an > additional argument to -r along the lines > of shutdown -r [when-die] [when-resurrect] >

Re: Junior hacker assignment :o

2002-11-05 Thread Mike Hogsett
> - 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

Re: Junior hacker assignment :o

2002-11-05 Thread DaleCo Help Desk
- 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 >

Re: Junior hacker assignment :o

2002-11-05 Thread Carlos Carnero
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?)

Re: Junior hacker assignment :o

2002-11-05 Thread Carlos Carnero
Hi, --- Stephen Hovey <[EMAIL PROTECTED]> wrote: > Um - its already in there - man shutdown This is from an earlier message: Hi, --- DaleCo Help Desk <[EMAIL PROTECTED]> wrote: > And this is a need that "shutdown -r" doesn't > address? >From an earlier message: --- Steve Tremblett wrote: > D

Re: Junior hacker assignment :o

2002-11-05 Thread Carlos Carnero
Hi, --- DaleCo Help Desk <[EMAIL PROTECTED]> wrote: > And this is a need that "shutdown -r" doesn't > address? >From an earlier message: --- Steve Tremblett wrote: > Does "shutdown -r now" reboot the machine without > APM? yes it does. And it can set for a specific time if I use something other

Re: Junior hacker assignment :o

2002-11-05 Thread DaleCo Help Desk
- Original Message - From: "Carlos Carnero" <[EMAIL PROTECTED]> To: "FreeBSD Questions" <[EMAIL PROTECTED]> Sent: Tuesday, November 05, 2002 1:20 PM Subject: Junior hacker assignment :o > Hello, > > I'd like to make my own modification

Re: Junior hacker assignment :o

2002-11-05 Thread DaleCo Help Desk
- Original Message - From: "Carlos Carnero" <[EMAIL PROTECTED]> To: "FreeBSD Questions" <[EMAIL PROTECTED]> Sent: Tuesday, November 05, 2002 1:20 PM Subject: Junior hacker assignment :o > Hello, > > I'd like to make my own modification

Re: Junior hacker assignment :o

2002-11-05 Thread Carlos Carnero
Hi, > Does "shutdown -r now" reboot the machine without > APM? yes it does. And it can set for a specific time if I use something other than now :) But I need it for other purposes. Let me see if I can explain this. I'm using a real dumb UPS, which can signal FreeBSD that not only the AC's gone

Re: Junior hacker assignment :o

2002-11-05 Thread Stephen Hovey
> Hello, > > I'd like to make my own modification to FreeBSD, but I > really don't know where to start. This is what I want > to do: > > After doing a shutdown (no APM nor ACPI) FreeBSD tells > me that the system is ready to be powered down. I'd > like to add a (configurable) timeout to this fina

Re: Junior hacker assignment :o

2002-11-05 Thread Steve Tremblett
+ Carlos Carnero wrote: | Hello, | | I'd like to make my own modification to FreeBSD, but I | really don't know where to start. This is what I want | to do: | | After doing a shutdown (no APM nor ACPI) FreeBSD tells | me that the system is ready to be powered down. I'd | like to add a (config

Junior hacker assignment :o

2002-11-05 Thread Carlos Carnero
Hello, I'd like to make my own modification to FreeBSD, but I really don't know where to start. This is what I want to do: After doing a shutdown (no APM nor ACPI) FreeBSD tells me that the system is ready to be powered down. I'd like to add a (configurable) timeout to this final system notice th