blob: b12bfb26e0366fa96067a8855bc28ba63cdb7f0e [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
10chmod +x /etc/init.d/bal_core_dist
11chmod +x /etc/init.d/openolt
12update-rc.d bal_core_dist defaults
13update-rc.d openolt defaults
Shad Ansari9fb007d2018-05-14 18:31:38 +000014mv /tmp/openolt /broadcom
Shad Ansari9fb007d2018-05-14 18:31:38 +000015mv /tmp/libgrpc++.so.1 /usr/local/lib
16mv /tmp/libgrpc.so.6 /usr/local/lib
Shad Ansarif1e0bc82018-05-21 17:51:45 +000017mv /broadcom/libbal_api_dist.so /usr/local/lib
Shad Ansaricb004c52018-05-30 18:07:23 +000018/opt/bcm68620/svk_init.sh
Shad Ansarid0eaf752018-08-16 00:26:12 +000019#service bal_core_dist start
20#service openolt start