David Wolfskill wrote:
On Fri, Feb 08, 2008 at 03:23:33PM +0100, Dominic Fandrey wrote:
Carlos A. M. dos Santos wrote:
On Feb 8, 2008 4:27 AM, Dominic Fandrey <[EMAIL PROTECTED]> wrote:
...
I put the following into my rc.conf:
# Set mode for CD/DVD drive.
/sbin/atacontrol mode acd0 2>&1 | /usr/bin/grep PIO > /dev/null 2>&1 \
       && /sbin/atacontrol mode acd0 UDMA33
Do not put this in rc.conf. It will be executed again each time a
script in /etc/rc.d source rc.conf to obtain the configuration
variables.
Hence the check, weather the drive is in PIO mode or not. The way I understand the rc(8) manual page, the same is true for rc.local.
...

As I learned some years ago, rc.conf is for configuration
variable-setting, not executable code.  Ref. (from rc.conf(5)):

Why care about correctly implementing a sloppy solution? I'd rather have a good solution correctly implemented. For me that means offering the possibility to tweak the ata mode for each device in the /boot/device.hints file.
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to