r4218 - developers/tick/Test_env_script_GTA02A5

jeremy at sita.openmoko.org jeremy at sita.openmoko.org
Wed Mar 19 04:09:09 CET 2008


Author: jeremy
Date: 2008-03-19 04:09:06 +0100 (Wed, 19 Mar 2008)
New Revision: 4218

Added:
   developers/tick/Test_env_script_GTA02A5/setup_at_neo_diversity.script
Modified:
   developers/tick/Test_env_script_GTA02A5/setupenv
Log:
2008-03-19  Jeremy Chang  <jeremy at openmoko.com>

        For adding diversity testing support. 



Added: developers/tick/Test_env_script_GTA02A5/setup_at_neo_diversity.script
===================================================================
--- developers/tick/Test_env_script_GTA02A5/setup_at_neo_diversity.script	2008-03-18 17:18:36 UTC (rev 4217)
+++ developers/tick/Test_env_script_GTA02A5/setup_at_neo_diversity.script	2008-03-19 03:09:06 UTC (rev 4218)
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# name server stuff
+cp resolv.conf /etc/
+
+cd /etc/ipkg
+rm -rf *
+cd ~
+cp gta02.conf /etc/ipkg
+cd /var/lib/ipkg
+rm -rf 
+cd ~/
+ipkg update
+sleep 5
+ipkg install diversity-daemon 
+sleep 5
+ipkg install diversity-nav
+
+

Modified: developers/tick/Test_env_script_GTA02A5/setupenv
===================================================================
--- developers/tick/Test_env_script_GTA02A5/setupenv	2008-03-18 17:18:36 UTC (rev 4217)
+++ developers/tick/Test_env_script_GTA02A5/setupenv	2008-03-19 03:09:06 UTC (rev 4218)
@@ -3,6 +3,7 @@
 IMAGE_DIR="images.storage"
 NEEDDOWNLOAD=1;
 ASSASSINTESTENV=1;
+DIVERSITYTESTENV=1;
 INTERNALFLAG=1
 
 if ( ping -c 2 barbie.tw.openmoko.com  2>&1 > /dev/null ) && (( ${INTERNALFLAG}==1 ));then
@@ -38,8 +39,10 @@
 	echo "Want do you want to do?"
 	echo "  1. Reflash images cached only."
 	echo "  2. Reflash images cached and setup Assassin Testing enviornment."
-	echo "  3. Download Images from buildhost, and reflashing them only."
-	echo "  4. Download Images from buildhostm and setup Assassin Testing environment."
+	echo "  3. Reflash images cached and setup Diversity Testing enviornment."
+	echo "  4. Download Images from buildhost, and reflashing them only."
+	echo "  5. Download Images from buildhostm and setup Assassin Testing environment."
+	echo "  6. Download Images from buildhostm and setup Diversity Testing environment."
 	echo -n "choice >"
 	read ANS
 	echo ""
@@ -50,11 +53,17 @@
 		NEEDDOWNLOAD=0;
 		ASSASSINTESTENV=1;
 	elif ((  ${ANS} == 3 ));then
+		NEEDDOWNLOAD=0;
+		DIVERSITYTESTENV=1;
+	elif ((  ${ANS} == 4 ));then
 		NEEDDOWNLOAD=1;
 		ASSASSINTESTENV=0;
-	elif ((  ${ANS} == 4 ));then
+	elif ((  ${ANS} == 5 ));then
 		NEEDDOWNLOAD=1;
 		ASSASSINTESTENV=1;
+	elif ((  ${ANS} == 6 ));then
+		NEEDDOWNLOAD=1;
+		DIVERSITYTESTENV=1;
 	else 
 		setup_env
 	fi
@@ -146,4 +155,13 @@
 	scp gta02.conf  resolv.conf setup_at_neo_assassin.script root at 192.168.0.202:~/
 	ssh root at 192.168.0.202 "chmod 755 ./setup_at_neo_assassin.script;./setup_at_neo_assassin.script"
 fi
+if (( ${DIVERSITYTESTENV}== 1));then
+	if ! [ -e ~/.ssh/config ]; then
+		config_ssh
+	elif (( `cat ~/.ssh/config | grep "neo" | wc -l`== 0 ));then
+		config_ssh
+	fi
+	scp gta02.conf  resolv.conf setup_at_neo_diversity.script root at 192.168.0.202:~/
+	ssh root at 192.168.0.202 "chmod 755 ./setup_at_neo_diversity.script;./setup_at_neo_diversity.script"
+fi
 echo "Ok!! Now the Neo is all yours. Enjoy Hacking || Testing..."





More information about the commitlog mailing list