blob: e7d5a53cedfb38ee228fddcfac201f85c59727b6 [file] [log] [blame]
Shad Ansari6cd46a62018-05-13 23:20:51 +00001#!/bin/bash
2
Shad Ansaricb004c52018-05-30 18:07:23 +00003rm -rf /opt/bcm68620
4rm -rf /broadcom
5tar zxf /tmp/release_asfvolt16_V02.06.201804301043.tar.gz -C / 2>&1 > /dev/null
6grep -q '\/opt\/bcm68620\/svk_init.sh' /etc/rc.local || sed -i -e '$i \/opt\/bcm68620\/svk_init.sh' /etc/rc.local
7rm -f /run/bcm68620
Shad Ansarid0eaf752018-08-16 00:26:12 +00008cp /tmp/init.d/bal_core_dist /etc/init.d
9cp /tmp/init.d/openolt /etc/init.d
Nicolas Palpacuer967438f2018-09-07 14:41:54 -040010cp /tmp/logrotate.d/openolt /etc/logrotate.d
Shad Ansarid0eaf752018-08-16 00:26:12 +000011chmod +x /etc/init.d/bal_core_dist
12chmod +x /etc/init.d/openolt
13update-rc.d bal_core_dist defaults
14update-rc.d openolt defaults
Shad Ansari9fb007d2018-05-14 18:31:38 +000015mv /tmp/openolt /broadcom
Shad Ansari9fb007d2018-05-14 18:31:38 +000016mv /tmp/libgrpc++.so.1 /usr/local/lib
17mv /tmp/libgrpc.so.6 /usr/local/lib
Shad Ansarif1e0bc82018-05-21 17:51:45 +000018mv /broadcom/libbal_api_dist.so /usr/local/lib
Shad Ansaricb004c52018-05-30 18:07:23 +000019/opt/bcm68620/svk_init.sh
Shad Ansarid0eaf752018-08-16 00:26:12 +000020#service bal_core_dist start
21#service openolt start