blob: f4a7f56e42a6b2cb36c6b82a8fb16485c9483ab1 [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
Shad Ansarif1e0bc82018-05-21 17:51:45 +000013mv /broadcom/libbal_api_dist.so /usr/local/lib
Shad Ansari9fb007d2018-05-14 18:31:38 +000014
15# Init file
16#mv /tmp/voltha_init.sh /broadcom
17grep -q '\/opt\/bcm68620\/svk_init.sh' /etc/rc.local || sed -i -e '$i \/opt\/bcm68620\/svk_init.sh' /etc/rc.local
18
Shad Ansari6cd46a62018-05-13 23:20:51 +000019source /root/.bashrc
Shad Ansari9fb007d2018-05-14 18:31:38 +000020cd /broadcom && /sbin/ldconfig
21/opt\/bcm68620\/svk_init.sh