--- 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,
> > >
> > >
> -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
--- 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
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.
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
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 ;)
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]
>
> - 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
- 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?)
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
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
- 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
- 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
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
> 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
+ 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
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
18 matches
Mail list logo