Hi,

On Fri, Jul 30, 2010 at 7:28 AM, Jan Stary <h...@stare.cz> wrote:
> On Jul 29 23:03:18, Tomas Vavrys wrote:
>> Or you can try this, also in /etc/rc.
>
> That's not what I meant. I don't want to tweak /etc/rc itse;f.
> What I was asking is whether there are variables I could set
> in rc.conf.local, as with other features.
>
> Probably not, so I will continue using my tiny scripts.

Without touching rc, I use this tiny bits in rc.securelevel:

for TRY in 1 2 3; do
        bioctl -c C -l /dev/sd0m softraid0
        if [ $? -eq 0 ]; then
                DRIVE=$( expr "$(sysctl -n
hw.sensors.softraid0.drive0)" : 'online (\(sd[0-9]\)), OK' )
                fsck -p /dev/${DRIVE}d \
                && mount -o softdep /dev/${DRIVE}d /home
                break
        fi
done

Ciao,
D.

Reply via email to