[packages] mysql: use proper proc file in hostname patch

git-svn-id: svn://svn.openwrt.org/openwrt/packages@25183 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2011-01-27 22:43:17 +00:00
parent ad71577e93
commit 8f54736335

View File

@ -5,7 +5,7 @@
# Try to determine the hostname # Try to determine the hostname
-hostname=`@HOSTNAME@` -hostname=`@HOSTNAME@`
+hostname=`cat /proc/net/hostname` +hostname=`cat /proc/sys/kernel/hostname`
# Check if hostname is valid # Check if hostname is valid
if test "$cross_bootstrap" -eq 0 -a "$in_rpm" -eq 0 -a "$force" -eq 0 if test "$cross_bootstrap" -eq 0 -a "$in_rpm" -eq 0 -a "$force" -eq 0