ca6f06d970fb8b790c938e1fc70ec561876405b7
[msb/discovery.git] / distributions / msb-discovery / src / assembly / resources / startup.sh
1 #!/bin/sh
2 #
3 # Copyright 2016 ZTE, Inc. and others.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17
18 DIRNAME=`dirname $0`
19 RUNHOME=`cd $DIRNAME/; pwd`
20
21
22 echo @RUNHOME@ $RUNHOME
23
24
25 APP_INFO=msb-discover
26 APP_CMD=run.sh
27
28 cd $RUNHOME
29
30 for i in `find -name run.sh` 
31 do 
32 echo "exec" $i
33 sh $i &
34 done
35
36 echo "Startup will be finished in background...";
37 echo " + Wait a minute";
38 echo " + Open 'http://<HOST>' in your browser to access the $APP_INFO
39 stem";