#!/bin/sh
# /etc/rc.boot/gom: initialize mixer(s) using gom
#
# abort on any error
set -e

# This is the default options file.
gom_options_file=/etc/gom/gomrc
# This is the default settings file loaded with gom, user root, via "gom --get-settings".
gom_default_settings_file=/etc/gom/default

# If there is no reasonable system configuration, exit silently.
test -f ${gom_options_file} -a -f ${gom_default_settings_file} || exit 0

# Assuming that configuring the mixer(s) is wanted via found default file.
echo -n "Configuring audio mixer settings with gom... "
gom --quiet --get-settings
echo "done."

#
exit 0
