AyumuUeha | 76a01bc | 2017-05-18 13:34:13 +0900 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | #************************************************************/ |
| 3 | #** File: vcpe_proxy_ap_mgmt_start.sh */ |
| 4 | #** Contents: Contains shell script to start VCPE */ |
| 5 | #** PPPoE Management */ |
| 6 | #************************************************************/ |
| 7 | echo "vcpe_proxy_ap_mgmt_start.sh: BEGIN" >/tmp/pppoeMgmt.log |
| 8 | date >>/tmp/pppoeMgmt.log |
| 9 | |
| 10 | cd /usr/local/lib/node_modules/ |
| 11 | # TODO: |
| 12 | # Need to fix this hardcoded filename |
| 13 | ### Replace apmgmt_js.tar by the variable $APMGMT_TAR_FILE |
| 14 | tar -xvf apmgmt_js.tar |
| 15 | |
| 16 | if [[ "$1" == "ipv4" ]]; then |
| 17 | cp checkPNI_ipv4.js checkPNI.js |
| 18 | cp httpServer_ipv4.js httpServer.js |
| 19 | fi |
| 20 | |
| 21 | nodejs httpServer.js >> /tmp/httpServer.log 2>&1 & |
| 22 | nodejs cController.js >> /tmp/cController.log 2>&1 & |
| 23 | |