[aadk-commits] dbailey: trunk r337 - /trunk/scripts/build-distro

aadk-commits at lists.digium.com aadk-commits at lists.digium.com
Mon Apr 16 07:17:03 MST 2007


Author: dbailey
Date: Mon Apr 16 09:17:03 2007
New Revision: 337

URL: http://svn.digium.com/view/aadk?view=rev&rev=337
Log:
Add means of pushing flavor file contents to default networking.conf file to provide a hostname based on build type

Modified:
    trunk/scripts/build-distro

Modified: trunk/scripts/build-distro
URL: http://svn.digium.com/view/aadk/trunk/scripts/build-distro?view=diff&rev=337&r1=336&r2=337
==============================================================================
--- trunk/scripts/build-distro (original)
+++ trunk/scripts/build-distro Mon Apr 16 09:17:03 2007
@@ -5,6 +5,7 @@
 LOCALVERSIONFILE="uClinux/uClinux-dist/linux-2.6.x/localversion-Digium"
 ALLLOCALVERSIONFILE="uClinux/uClinux-dist/linux-2.6.x/localversion-*"
 IMAGEDIR="uClinux/uClinux-dist/romfs"
+NETWORKCONF=uClinux/uClinux-dist/defaults/etc/asterisk/networking.conf
 
 if [ -f ".version" -a -f ".flavor" ]; then 
 	echo "Version Files exist"
@@ -35,6 +36,11 @@
 		fi
 	done
 	echo ${FLAVOR}"-"${VER} >$LOCALVERSIONFILE
+
+#set the default networking config host name 
+	grep -v HOSTNAME ${NETWORKCONF} > ${NETWORKCONF}.TMP
+	echo "HOSTNAME = ${FLAVOR}" >>${NETWORKCONF}.TMP
+	mv ${NETWORKCONF}.TMP ${NETWORKCONF}
 fi 
 
 cd uClinux/uClinux-dist



More information about the aadk-commits mailing list