[packages] mysql: use proper proc file in hostname patch
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 27 Jan 2011 22:43:17 +0000 (22:43 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 27 Jan 2011 22:43:17 +0000 (22:43 +0000)
SVN-Revision: 25183

libs/mysql/patches/502-fix-hostname.patch

index 632cb9855108b1dc9bc694e690f8f39e68033bce..a35c3be83fa6681798780457c637408d7ef5a964 100644 (file)
@@ -5,7 +5,7 @@
  
  # Try to determine the hostname
 -hostname=`@HOSTNAME@`
-+hostname=`cat /proc/net/hostname`
++hostname=`cat /proc/sys/kernel/hostname`
  
  # Check if hostname is valid
  if test "$cross_bootstrap" -eq 0 -a "$in_rpm" -eq 0 -a "$force" -eq 0