Hi Guys, What is happening below is that apm gets enabled and then the apmd script runs it again because the forcestatus for apm will always fail. So, it seems...
... Actually a status for apm is quite simple... While I was looking at it I thought it would be nice to be able to stop apm also, so support for that is also...
... But of course it wasn't that simple... When using forcestatus the rc script will always return 0, even when the the status function tries to return 1 to...
Hello folks, http://people.freebsd.org/~mtm/patches/rcboot.diff This patch saved 6 seconds off a 30 sec. rc run (from the mounting of the root file system...
... Nice! :-) ... I must say I find it a bit odd that [...] to test is faster since both are sh builtins. If it is faster I would say this is rather some bug...
On Wed, 4 Jun 2003 16:08:39 +0200 ... /bin/[ is a hardlink to /bin/test but sh(1) has a built-in test, which is what my patches use. Cheers. -- Mike Makonnen...
... Yes, but sh(1) should also use '[' as builtin alias for test : [FreeBSD@eddie:CURRENT] grep test bin/sh/builtins.def testcmd test [ I must admit...
On Wed, 4 Jun 2003 17:16:44 +0200 ... I must admit I used 'man builtin' to find out which commands were builtin and which weren't, and it didn't list [. I just...
... If you're *that* concerned about optimising tests like that, you can replace 90% of them with case, which is slightly faster again. It can make the code a...
Luke Mewburn
lukem@...
Jun 4, 2003 11:13 pm
260
... Depends on your perspective I suppose. :) I re-wrote the rcOG scripts in FreeBSD to use case almost exclusively, partly to get the benefits of case ...
Doug Barton
DougB@...
Jun 4, 2003 11:17 pm
261
On Wed, 4 Jun 2003 12:55:00 -0700 (PDT) ... I don't know what happened. I re-ran the tests and now the stock rc.d performs just as well as with my patches. I...
Hello, This email message is a notification to let you know that a file has been uploaded to the Files area of the FreeBSD-rc group. File : / Live...
FreeBSD-rc@yahoogroup...
Jun 6, 2003 8:41 am
264
Hello, This email message is a notification to let you know that a file has been uploaded to the Files area of the FreeBSD-rc group. File : / Free Pics...
FreeBSD-rc@yahoogroup...
Jun 6, 2003 8:41 am
265
Hello, This email message is a notification to let you know that a file has been uploaded to the Files area of the FreeBSD-rc group. File : / Net Dating...
FreeBSD-rc@yahoogroup...
Jun 6, 2003 8:41 am
267
Hello folks, The recent episode with rc.d/apm has higlighted the need for exit values that more accurately reflect the outcome of a command. The specific...
Hello I just noticed that rc.d/network1 has "#!/bin/sh -x" intead of the normal "#!/bin/sh". Looks like debugging that just wasn't removed. From a quick grep...
On Fri, 6 Jun 2003 14:46:34 +0200 ... Thanks. Committed. This script is no longer used and was due to be removed anyways. Cheers. -- Mike Makonnen | GPG-KEY:...
... Ah - I just needed to pick up an alias I had added to rc.conf and just tried network1 from from old habit, since that that was where interfaces was brought...
... Is there any reason to return 1 instead of the actual error level? In most cases it won't matter, since it is just important that the script failed, but...
On Fri, 6 Jun 2003 18:37:11 +0200 ... All return values should be treated as booleans. I have some questions about the rc.d/apmd patch: + + # Warn user about...
... Ok. ... A fair question. When using ACPI, and it's limited APM compatibility, only /dev/apm exists, which apm(8) uses. apmd(8) will not start unless ...
... Good ideas; I've been looking at doing these in NetBSD for a while....
Luke Mewburn
luke@...
Jun 17, 2003 11:55 pm
280
On Wed, 18 Jun 2003 09:57:42 +1000 ... Thanks. I've been wanting to do this too ever since we imported your stuff :-) Cheers. -- Mike Makonnen | GPG-KEY:...
I'd like to commit the following change to rc.d/initdiskless (and the identical diff to rc.diskless1). It makes remounts more useful in an environment where...