#!/bin/sh # # $FreeBSD$ # # Install the MythTV database. We only do this if it doesn't already # exist. # # Start mysqld if it isn't running. pgrep mysqld > /dev/null || /usr/local/etc/rc.d/mysql start || exit # Try to create the database mysql < /usr/local/share/mythtv/database/mc.sql if [ $? -ne 0 ]; then echo <