+ 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
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
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,
- 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 to FreeBSD, but I
really don't know where to start. This is
- 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 to FreeBSD, but I
really don't know where to start. This is
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 than now
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:
Does
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?)
- 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
- 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
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 :)
ifIWasAGoodCProgrammer
I might just alter shutdown so it took an
additional argument to -r along the lines
of shutdown -r [when-die]
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 ;)
Thanks a
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 to reboot
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. 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 kernel is in while it
-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 idea
--- 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,
--- Mike Hogsett [EMAIL PROTECTED]
17 matches
Mail list logo