blob: ab3c7e725a2a28452cc293f4c13c711b3263f095 [file] [log] [blame]
Shad Ansari6cd46a62018-05-13 23:20:51 +00001#!/bin/bash
2
Shad Ansari9fb007d2018-05-14 18:31:38 +00003# Extract BAL driver
Shad Ansari6cd46a62018-05-13 23:20:51 +00004tar zxf /tmp/release_asfvolt16.tar.gz -C / 2>&1 > /dev/null
Shad Ansari9fb007d2018-05-14 18:31:38 +00005
6# Copy OpenOLT folder
7mv /tmp/openolt /broadcom
8
9# Copy libraries
10mv /tmp/libgrpc++_reflection.so.1 /usr/local/lib
11mv /tmp/libgrpc++.so.1 /usr/local/lib
12mv /tmp/libgrpc.so.6 /usr/local/lib
13
14# Init file
15#mv /tmp/voltha_init.sh /broadcom
16grep -q '\/opt\/bcm68620\/svk_init.sh' /etc/rc.local || sed -i -e '$i \/opt\/bcm68620\/svk_init.sh' /etc/rc.local
17
Shad Ansari6cd46a62018-05-13 23:20:51 +000018source /root/.bashrc
Shad Ansari9fb007d2018-05-14 18:31:38 +000019cd /broadcom && /sbin/ldconfig
20/opt\/bcm68620\/svk_init.sh