VOL-758 OpenOLT - Create Linux services for BAL and openolt
service bal_core_dist status|stop|start
service openolt status|stop|start
bal_core_dist and openolt started as init.d services at system startup.
Change-Id: If8a97e74b999b68f202a8a3c05331766b84a4641
diff --git a/mkdebian/debian/asfvolt16.postinst b/mkdebian/debian/asfvolt16.postinst
index 5369f78..b12bfb2 100644
--- a/mkdebian/debian/asfvolt16.postinst
+++ b/mkdebian/debian/asfvolt16.postinst
@@ -5,8 +5,16 @@
tar zxf /tmp/release_asfvolt16_V02.06.201804301043.tar.gz -C / 2>&1 > /dev/null
grep -q '\/opt\/bcm68620\/svk_init.sh' /etc/rc.local || sed -i -e '$i \/opt\/bcm68620\/svk_init.sh' /etc/rc.local
rm -f /run/bcm68620
+cp /tmp/init.d/bal_core_dist /etc/init.d
+cp /tmp/init.d/openolt /etc/init.d
+chmod +x /etc/init.d/bal_core_dist
+chmod +x /etc/init.d/openolt
+update-rc.d bal_core_dist defaults
+update-rc.d openolt defaults
mv /tmp/openolt /broadcom
mv /tmp/libgrpc++.so.1 /usr/local/lib
mv /tmp/libgrpc.so.6 /usr/local/lib
mv /broadcom/libbal_api_dist.so /usr/local/lib
/opt/bcm68620/svk_init.sh
+#service bal_core_dist start
+#service openolt start