mysql: import from oldpackages, add myself as maintainer

No updates to the package as it is the latest release of the still
supported 5.1 release series.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich
2014-08-11 16:03:39 +02:00
parent 7ee92fa45c
commit 0a4217b2fe
5 changed files with 461 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2010-2011 OpenWrt.org
START=95
STOP=10
SERVICE_DAEMONIZE=1
SERVICE_WRITE_PID=1
SERVICE_STOP_TIME=9
error() {
echo "${initscript}:" "$@" 1>&2
}
start() {
local datadir=$(sed -n -e "s/^[[:space:]]*datadir[[:space:]]*=[[:space:]]*[\"']\?\([^\"']*\)[\"']\?/\1/p" /etc/my.cnf)
if [ ! -d "$datadir" ]; then
error "Error: datadir '$datadir' in /etc/my.cnf doesn't exist"
return 1
fi
if [ ! -f "$datadir/mysql/tables_priv.MYD" ]; then
error "Error: I didn't detect a privileges table, you might need to run mysql_install_db --force to initialize the system tables"
return 1
fi
service_start /usr/bin/mysqld
}
stop() {
service_stop /usr/bin/mysqld
}