# Make sure udev can write to the directories it is using
rw_dirs="$rw_dirs /var/lib/dbus /media"

# Make sure hald can write to the directories it is using
rw_dirs="$rw_dirs /var/cache/hald"

# Make sure resolvconf can write to the directories it is using
rw_dirs="$rw_dirs /etc/resolvconf/run"

# Make sure NTP is able to update its drift file
rw_dirs="$rw_dirs /var/lib/ntp"

# Make sure rwhod can work
rw_dirs="$rw_dirs /var/spool/rwho"

# Make sure acpi-support installed on laptops can save the files it
# want to save during boot
if [ -d /var/lib/acpi-support ] ; then
    rw_dirs="$rw_dirs /var/lib/acpi-support"
fi

# Make sure ifupdown can work
rw_dirs="$rw_dirs /etc/network/run"

# Make sure rpc.statd can work
copy_dirs="$copy_dirs /var/lib/nfs"

# Try to get DNS working on the clients after boot
if [ -z "$SEARCH_DOMAIN" ] && [ -z "$DNS_SERVER" ] ; then
    SEARCH_DOMAIN=intern
    # Test which DNS server address that work
    for s in 10.0.2.2 192.168.0.254 ; do
        if host -W 1 $s $s > /dev/null 2>&1 ; then
            DNS_SERVER=$s
            break
        fi
    done
fi
