summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/lsb/lsbsetup
diff options
context:
space:
mode:
authorXiaofeng Yan <xiaofeng.yan@windriver.com>2012-02-03 14:39:46 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-03 15:56:38 +0000
commit6cafc0011e147dd378e4f24643d944e3ac48e206 (patch)
treef6359d3786d4341332f10da6bb4a15fa138efda3 /meta/recipes-extended/lsb/lsbsetup
parentbb5704a4ee308b57db970cf45e806bafd24bcf5b (diff)
downloadpoky-6cafc0011e147dd378e4f24643d944e3ac48e206.tar.gz
LSB_Setup.sh: Add locale resources and startup script avahi-daemon
The purpose of adding locale resources is to resolve bug 1954 because missing locale resources cause many failures. The purpose of adding startup script avahi-daemon is to resolve bug 1907. The detailed description is as follows: No daemon progress "avahi-daemon" when system starting up. Function "gethostbyaddr" will search file "/var/run/avahi-daemon/socket" but there is no this file which is created by avahi-daemon. [YOCTO #1907 #1954] (From OE-Core rev: ce410852b7623379ad6961529e28f643e209749e) Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/lsb/lsbsetup')
-rw-r--r--meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh50
1 files changed, 29 insertions, 21 deletions
diff --git a/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh b/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh
index 10d8fb8299..aec1858729 100644
--- a/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh
+++ b/meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh
@@ -16,7 +16,7 @@
16# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 16# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 17
18##Prepare Steps 18##Prepare Steps
19#Steps 0; Confirm the installed LSB Packages 19# Confirm the installed LSB Packages
20ARCH=`uname -m` 20ARCH=`uname -m`
21APP_FILE=`ls /lsb-Application/*.rpm` 21APP_FILE=`ls /lsb-Application/*.rpm`
22if [ ! -f /opt/lsb/test/manager/bin/dist-checker-start.pl ] 22if [ ! -f /opt/lsb/test/manager/bin/dist-checker-start.pl ]
@@ -55,7 +55,7 @@ then
55 fi 55 fi
56fi 56fi
57 57
58#Steps 1; Deleted existed user tester 58# Deleted existed user tester
59id tester 59id tester
60if [ $? -eq 0 ] 60if [ $? -eq 0 ]
61then 61then
@@ -85,7 +85,7 @@ fi
85} 85}
86 86
87###Start 87###Start
88#Step 1:Add tester group 88# Add tester group
89echo "" 89echo ""
90echo "---------------------------------" 90echo "---------------------------------"
91echo "Step 1:Add Group tester" 91echo "Step 1:Add Group tester"
@@ -93,7 +93,7 @@ groupadd tester
93check 93check
94 94
95 95
96#Step 2:Add User tester 96# Add User tester
97echo "" 97echo ""
98echo "---------------------------------" 98echo "---------------------------------"
99echo "Step 2:Add User tester" 99echo "Step 2:Add User tester"
@@ -104,14 +104,14 @@ echo "Check the tester user"
104id tester 104id tester
105check 105check
106 106
107#Step 3;Stop Boa server 107# Stop Boa server
108#echo "" 108#echo ""
109#echo "---------------------------------" 109#echo "---------------------------------"
110#echo "Step 3:Stop BOA server" 110#echo "Step 3:Stop BOA server"
111#/etc/init.d/boa stop 111#/etc/init.d/boa stop
112#check 112#check
113 113
114#Step 4:Create Dirnames file for RPM 114# Create Dirnames file for RPM
115echo "" 115echo ""
116echo "---------------------------------" 116echo "---------------------------------"
117echo "Step 4:Create the Dirnames on target" 117echo "Step 4:Create the Dirnames on target"
@@ -170,53 +170,61 @@ else
170 echo "Fail to creat Dirnames file" 170 echo "Fail to creat Dirnames file"
171fi 171fi
172 172
173#Step 5; 173# ldconfig
174echo "" 174echo ""
175echo "---------------------------------" 175echo "---------------------------------"
176echo "Step 5:" 176echo "Step 5:"
177ldconfig -v 177ldconfig -v
178check; 178check;
179 179
180#Step 6;
181echo ""
182echo "---------------------------------"
183echo "Step 6:Check with link to ftp.linux-foundation.org"
184echo "140.211.169.59 ftp.linux-foundation.org ftp.linuxfoundation.org" >> /etc/hosts
185
186ping -c 5 ftp.linux-foundation.org
187check
188 180
189#Step 7 181# Insmod look.ko
190insmod /lib/modules/2.6.*/kernel/drivers/block/loop.ko 182insmod /lib/modules/2.6.*/kernel/drivers/block/loop.ko
191if [ $? != 0 ];then 183if [ $? != 0 ];then
192 echo "Please insmod loop.ko manully" 184 echo "Please insmod loop.ko manully"
193fi 185fi
194#Step 8 186# Start lsb
195echo "" 187echo ""
196if [ -f /opt/lsb/test/manager/bin/dist-checker-start.pl ];then 188if [ -f /opt/lsb/test/manager/bin/dist-checker-start.pl ];then
197 /opt/lsb/test/manager/bin/dist-checker-start.pl 189 /opt/lsb/test/manager/bin/dist-checker-start.pl
198fi 190fi
199 191
200#Step 9 get ip address for target platform 192# Get ip address for target platform
201addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]][[:space:]]Bcast//g` 193addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]][[:space:]]Bcast//g`
202echo -e "you should input ${addr}:8888 on your browser" 194echo -e "you should input ${addr}:8888 on your browser"
203 195
204#workaround to add part of locales for LSB test 196# Workaround to add part of locales for LSB test
205localedef -i ja_JP -f EUC-JP ja_JP.eucjp 197localedef -i ja_JP -f EUC-JP ja_JP.eucjp
206localedef -i en_US -f ISO-8859-15 en_US.ISO-8859-15 198localedef -i en_US -f ISO-8859-15 en_US.ISO-8859-15
199localedef -i en_US -f ISO-8859-1 en_US.ISO-8859-1
200localedef -i en_US -f ISO-8859-1 en_US
201localedef -i de_DE -f UTF-8 de_DE.UTF-8
202localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro
207localedef -i en_US -f UTF-8 en_US.UTF-8 203localedef -i en_US -f UTF-8 en_US.UTF-8
208localedef -i se_NO -f UTF-8 se_NO.UTF-8 204localedef -i se_NO -f UTF-8 se_NO.UTF-8
209localedef -i de_DE -f ISO-8859-1 de_DE 205localedef -i de_DE -f ISO-8859-1 de_DE
206localedef -i de_DE -f ISO-8859-15 de_DE.ISO-8859-15
210localedef -i en_US -f ISO-8859-1 en_US.ISO8859-1 207localedef -i en_US -f ISO-8859-1 en_US.ISO8859-1
211localedef -i fr_FR -f ISO-8859-1 fr_FR 208localedef -i fr_FR -f ISO-8859-1 fr_FR
209localedef -i it_IT -f ISO-8859-1 it_IT
210localedef -i es_MX -f ISO-8859-1 es_MX
211localedef -i en_HK -f ISO-8859-1 en_HK
212localedef -i en_PH -f ISO-8859-1 en_PH
213localedef -i ta_IN -f UTF-8 ta_IN
212 214
213#resolve localhost 215# Resolve localhost
214LOCALHOST=`hostname` 216LOCALHOST=`hostname`
215if ! `grep -F -q "$LOCALHOST" /etc/hosts`; then 217if ! `grep -F -q "$LOCALHOST" /etc/hosts`; then
216 echo "127.0.0.1 $LOCALHOST" >> /etc/hosts 218 echo "127.0.0.1 $LOCALHOST" >> /etc/hosts
217fi 219fi
218 220
219#Step 10 221# Start avahi-daemon
222/etc/init.d/avahi-daemon start
223ln -s /etc/init.d/avahi-daemon /etc/rc5.d/S88avahi-daemon
224
225# Done
220echo "Done!!" 226echo "Done!!"
221 227
222###End 228###End
229
230