From bd5bf3ecdb7757918a4d12add60ae295c837a2b7 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Thu, 9 Oct 2008 20:24:51 -0700
Subject: Remove the annoying onscreen message when the first db is installed.
 Redirect to /dev/null

---
 abs/core-testing/mysql/PKGBUILD | 9 +++------
 abs/core-testing/mysql/mysqld   | 4 ++--
 2 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/abs/core-testing/mysql/PKGBUILD b/abs/core-testing/mysql/PKGBUILD
index 88460bc..6627a97 100644
--- a/abs/core-testing/mysql/PKGBUILD
+++ b/abs/core-testing/mysql/PKGBUILD
@@ -3,7 +3,7 @@
 # Contributor: judd <jvinet@zeroflux.org>
 pkgname=mysql
 pkgver=5.0.60
-pkgrel=1
+pkgrel=3
 pkgdesc="A fast SQL database server"
 arch=(i686 x86_64)
 backup=(etc/my.cnf etc/conf.d/mysqld)
@@ -47,8 +47,5 @@ build() {
   install -D -m644 ../mysqld.conf.d ${startdir}/pkg/etc/conf.d/mysqld
   rm -f ${startdir}/pkg/usr/bin/mysql_config
 }
-md5sums=('2709a53f3da6f1cd868825ed2ea80431'
-         'e892aac36cbeb57f0e003ec0936afb3b'
-         '64d79a5a34043c1de949d734b720c217'
-         '0ee035590ffc61d32de994f461fd2bd2'
-         '4a9077fc95ec6db1d5420e0cdc74d31c')
+
+
diff --git a/abs/core-testing/mysql/mysqld b/abs/core-testing/mysql/mysqld
index 0fcecf7..e7f90d2 100755
--- a/abs/core-testing/mysql/mysqld
+++ b/abs/core-testing/mysql/mysqld
@@ -23,7 +23,7 @@ fi
 
 if [ ! -d $MYSQLD_ROOT ]; then
   mkdir $MYSQLD_ROOT
-  /usr/bin/mysql_install_db --datadir=$MYSQLD_ROOT --user=mysql
+  /usr/bin/mysql_install_db --datadir=$MYSQLD_ROOT --user=mysql 2>/dev/null > /dev/null
   chown -R mysql.mysql $MYSQLD_ROOT
 fi
 
@@ -36,7 +36,7 @@ case "$1" in
   start)
     stat_busy "Starting MySQL"
     if [ -z "$PID" ]; then
-       /usr/bin/mysqld_safe --datadir=$MYSQLD_ROOT &>/dev/null &
+       /usr/bin/mysqld_safe --datadir=$MYSQLD_ROOT  2>/dev/null >/dev/null &
       if [ $? -gt 0 ]; then
         stat_fail
         exit 1
-- 
cgit v0.12