Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
Shad Ansari | cb004c5 | 2018-05-30 18:07:23 +0000 | [diff] [blame] | 3 | rm -rf /opt/bcm68620 |
| 4 | rm -rf /broadcom |
| 5 | tar zxf /tmp/release_asfvolt16_V02.06.201804301043.tar.gz -C / 2>&1 > /dev/null |
| 6 | grep -q '\/opt\/bcm68620\/svk_init.sh' /etc/rc.local || sed -i -e '$i \/opt\/bcm68620\/svk_init.sh' /etc/rc.local |
| 7 | rm -f /run/bcm68620 |
Shad Ansari | d0eaf75 | 2018-08-16 00:26:12 +0000 | [diff] [blame] | 8 | cp /tmp/init.d/bal_core_dist /etc/init.d |
| 9 | cp /tmp/init.d/openolt /etc/init.d |
Nicolas Palpacuer | 967438f | 2018-09-07 14:41:54 -0400 | [diff] [blame^] | 10 | cp /tmp/logrotate.d/openolt /etc/logrotate.d |
Shad Ansari | d0eaf75 | 2018-08-16 00:26:12 +0000 | [diff] [blame] | 11 | chmod +x /etc/init.d/bal_core_dist |
| 12 | chmod +x /etc/init.d/openolt |
| 13 | update-rc.d bal_core_dist defaults |
| 14 | update-rc.d openolt defaults |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 15 | mv /tmp/openolt /broadcom |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 16 | mv /tmp/libgrpc++.so.1 /usr/local/lib |
| 17 | mv /tmp/libgrpc.so.6 /usr/local/lib |
Shad Ansari | f1e0bc8 | 2018-05-21 17:51:45 +0000 | [diff] [blame] | 18 | mv /broadcom/libbal_api_dist.so /usr/local/lib |
Shad Ansari | cb004c5 | 2018-05-30 18:07:23 +0000 | [diff] [blame] | 19 | /opt/bcm68620/svk_init.sh |
Shad Ansari | d0eaf75 | 2018-08-16 00:26:12 +0000 | [diff] [blame] | 20 | #service bal_core_dist start |
| 21 | #service openolt start |