blob: 92fd9f6e7b5b0fd5dfcde4d00a05823f817ddbe2 [file] [log] [blame]
Matteo Scandoloaca86652017-08-08 13:05:27 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
AyumuUeha76a01bc2017-05-18 13:34:13 +090017#!/bin/bash
18#************************************************************/
19#** File: vcpe_proxy_ap_mgmt_start.sh */
20#** Contents: Contains shell script to start VCPE */
21#** PPPoE Management */
22#************************************************************/
23echo "vcpe_proxy_ap_mgmt_start.sh: BEGIN" >/tmp/pppoeMgmt.log
24date >>/tmp/pppoeMgmt.log
25
26cd /usr/local/lib/node_modules/
27# TODO:
28# Need to fix this hardcoded filename
29### Replace apmgmt_js.tar by the variable $APMGMT_TAR_FILE
30tar -xvf apmgmt_js.tar
31
32if [[ "$1" == "ipv4" ]]; then
33 cp checkPNI_ipv4.js checkPNI.js
34 cp httpServer_ipv4.js httpServer.js
35fi
36
37nodejs httpServer.js >> /tmp/httpServer.log 2>&1 &
38nodejs cController.js >> /tmp/cController.log 2>&1 &
39