# -*- mode: shell-script; -*-

start on stopped modutils

console output

exec /etc/init.d/mountall.sh start

# Stuff to do after we're sure our separate /var exists -- after
# mountall.sh exits
post-stop script
    # Create /var/preferences directory
    if [ -f /var/preferences ]; then rm /var/preferences; fi # nuke if file, not dir
    if [ ! -d /var/preferences ]; then
        mkdir -p /var/preferences
        chown root /var/preferences
        chmod 777 /var/preferences
    fi
    mkdir -p /var/home/root
    mkdir -p /var/tmp
end script
