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 |
| 13 | |
| 14 | # Init file |
| 15 | #mv /tmp/voltha_init.sh /broadcom |
| 16 | grep -q '\/opt\/bcm68620\/svk_init.sh' /etc/rc.local || sed -i -e '$i \/opt\/bcm68620\/svk_init.sh' /etc/rc.local |
| 17 | |
Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 18 | source /root/.bashrc |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 19 | cd /broadcom && /sbin/ldconfig |
| 20 | /opt\/bcm68620\/svk_init.sh |