Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 3 | # Extract BAL driver |
Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 4 | tar zxf /tmp/release_asfvolt16.tar.gz -C / 2>&1 > /dev/null |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 5 | |
| 6 | # Copy OpenOLT folder |
| 7 | mv /tmp/openolt /broadcom |
| 8 | |
| 9 | # Copy libraries |
| 10 | mv /tmp/libgrpc++_reflection.so.1 /usr/local/lib |
| 11 | mv /tmp/libgrpc++.so.1 /usr/local/lib |
| 12 | mv /tmp/libgrpc.so.6 /usr/local/lib |
Shad Ansari | f1e0bc8 | 2018-05-21 17:51:45 +0000 | [diff] [blame^] | 13 | mv /broadcom/libbal_api_dist.so /usr/local/lib |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 14 | |
| 15 | # Init file |
| 16 | #mv /tmp/voltha_init.sh /broadcom |
| 17 | grep -q '\/opt\/bcm68620\/svk_init.sh' /etc/rc.local || sed -i -e '$i \/opt\/bcm68620\/svk_init.sh' /etc/rc.local |
| 18 | |
Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 19 | source /root/.bashrc |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 20 | cd /broadcom && /sbin/ldconfig |
| 21 | /opt\/bcm68620\/svk_init.sh |