diff options
author | Xiaofeng Yan <xiaofeng.yan@windriver.com> | 2012-02-03 14:39:46 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-02-03 15:56:38 +0000 |
commit | 6cafc0011e147dd378e4f24643d944e3ac48e206 (patch) | |
tree | f6359d3786d4341332f10da6bb4a15fa138efda3 /meta/recipes-extended | |
parent | bb5704a4ee308b57db970cf45e806bafd24bcf5b (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-extended/lsb/lsbsetup/LSB_Setup.sh | 50 |
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 |
20 | ARCH=`uname -m` | 20 | ARCH=`uname -m` |
21 | APP_FILE=`ls /lsb-Application/*.rpm` | 21 | APP_FILE=`ls /lsb-Application/*.rpm` |
22 | if [ ! -f /opt/lsb/test/manager/bin/dist-checker-start.pl ] | 22 | if [ ! -f /opt/lsb/test/manager/bin/dist-checker-start.pl ] |
@@ -55,7 +55,7 @@ then | |||
55 | fi | 55 | fi |
56 | fi | 56 | fi |
57 | 57 | ||
58 | #Steps 1; Deleted existed user tester | 58 | # Deleted existed user tester |
59 | id tester | 59 | id tester |
60 | if [ $? -eq 0 ] | 60 | if [ $? -eq 0 ] |
61 | then | 61 | then |
@@ -85,7 +85,7 @@ fi | |||
85 | } | 85 | } |
86 | 86 | ||
87 | ###Start | 87 | ###Start |
88 | #Step 1:Add tester group | 88 | # Add tester group |
89 | echo "" | 89 | echo "" |
90 | echo "---------------------------------" | 90 | echo "---------------------------------" |
91 | echo "Step 1:Add Group tester" | 91 | echo "Step 1:Add Group tester" |
@@ -93,7 +93,7 @@ groupadd tester | |||
93 | check | 93 | check |
94 | 94 | ||
95 | 95 | ||
96 | #Step 2:Add User tester | 96 | # Add User tester |
97 | echo "" | 97 | echo "" |
98 | echo "---------------------------------" | 98 | echo "---------------------------------" |
99 | echo "Step 2:Add User tester" | 99 | echo "Step 2:Add User tester" |
@@ -104,14 +104,14 @@ echo "Check the tester user" | |||
104 | id tester | 104 | id tester |
105 | check | 105 | check |
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 |
115 | echo "" | 115 | echo "" |
116 | echo "---------------------------------" | 116 | echo "---------------------------------" |
117 | echo "Step 4:Create the Dirnames on target" | 117 | echo "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" |
171 | fi | 171 | fi |
172 | 172 | ||
173 | #Step 5; | 173 | # ldconfig |
174 | echo "" | 174 | echo "" |
175 | echo "---------------------------------" | 175 | echo "---------------------------------" |
176 | echo "Step 5:" | 176 | echo "Step 5:" |
177 | ldconfig -v | 177 | ldconfig -v |
178 | check; | 178 | check; |
179 | 179 | ||
180 | #Step 6; | ||
181 | echo "" | ||
182 | echo "---------------------------------" | ||
183 | echo "Step 6:Check with link to ftp.linux-foundation.org" | ||
184 | echo "140.211.169.59 ftp.linux-foundation.org ftp.linuxfoundation.org" >> /etc/hosts | ||
185 | |||
186 | ping -c 5 ftp.linux-foundation.org | ||
187 | check | ||
188 | 180 | ||
189 | #Step 7 | 181 | # Insmod look.ko |
190 | insmod /lib/modules/2.6.*/kernel/drivers/block/loop.ko | 182 | insmod /lib/modules/2.6.*/kernel/drivers/block/loop.ko |
191 | if [ $? != 0 ];then | 183 | if [ $? != 0 ];then |
192 | echo "Please insmod loop.ko manully" | 184 | echo "Please insmod loop.ko manully" |
193 | fi | 185 | fi |
194 | #Step 8 | 186 | # Start lsb |
195 | echo "" | 187 | echo "" |
196 | if [ -f /opt/lsb/test/manager/bin/dist-checker-start.pl ];then | 188 | if [ -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 |
198 | fi | 190 | fi |
199 | 191 | ||
200 | #Step 9 get ip address for target platform | 192 | # Get ip address for target platform |
201 | addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]][[:space:]]Bcast//g` | 193 | addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]][[:space:]]Bcast//g` |
202 | echo -e "you should input ${addr}:8888 on your browser" | 194 | echo -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 |
205 | localedef -i ja_JP -f EUC-JP ja_JP.eucjp | 197 | localedef -i ja_JP -f EUC-JP ja_JP.eucjp |
206 | localedef -i en_US -f ISO-8859-15 en_US.ISO-8859-15 | 198 | localedef -i en_US -f ISO-8859-15 en_US.ISO-8859-15 |
199 | localedef -i en_US -f ISO-8859-1 en_US.ISO-8859-1 | ||
200 | localedef -i en_US -f ISO-8859-1 en_US | ||
201 | localedef -i de_DE -f UTF-8 de_DE.UTF-8 | ||
202 | localedef -i de_DE@euro -f ISO-8859-15 de_DE@euro | ||
207 | localedef -i en_US -f UTF-8 en_US.UTF-8 | 203 | localedef -i en_US -f UTF-8 en_US.UTF-8 |
208 | localedef -i se_NO -f UTF-8 se_NO.UTF-8 | 204 | localedef -i se_NO -f UTF-8 se_NO.UTF-8 |
209 | localedef -i de_DE -f ISO-8859-1 de_DE | 205 | localedef -i de_DE -f ISO-8859-1 de_DE |
206 | localedef -i de_DE -f ISO-8859-15 de_DE.ISO-8859-15 | ||
210 | localedef -i en_US -f ISO-8859-1 en_US.ISO8859-1 | 207 | localedef -i en_US -f ISO-8859-1 en_US.ISO8859-1 |
211 | localedef -i fr_FR -f ISO-8859-1 fr_FR | 208 | localedef -i fr_FR -f ISO-8859-1 fr_FR |
209 | localedef -i it_IT -f ISO-8859-1 it_IT | ||
210 | localedef -i es_MX -f ISO-8859-1 es_MX | ||
211 | localedef -i en_HK -f ISO-8859-1 en_HK | ||
212 | localedef -i en_PH -f ISO-8859-1 en_PH | ||
213 | localedef -i ta_IN -f UTF-8 ta_IN | ||
212 | 214 | ||
213 | #resolve localhost | 215 | # Resolve localhost |
214 | LOCALHOST=`hostname` | 216 | LOCALHOST=`hostname` |
215 | if ! `grep -F -q "$LOCALHOST" /etc/hosts`; then | 217 | if ! `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 |
217 | fi | 219 | fi |
218 | 220 | ||
219 | #Step 10 | 221 | # Start avahi-daemon |
222 | /etc/init.d/avahi-daemon start | ||
223 | ln -s /etc/init.d/avahi-daemon /etc/rc5.d/S88avahi-daemon | ||
224 | |||
225 | # Done | ||
220 | echo "Done!!" | 226 | echo "Done!!" |
221 | 227 | ||
222 | ###End | 228 | ###End |
229 | |||
230 | |||