blob: 047e7fede98dded6372a848cf659fb3f319f005a [file] [log] [blame]
Shad Ansari6cd46a62018-05-13 23:20:51 +00001#!/bin/bash
2
3# kill CLI applications
4echo "kill running time application"
Shad Ansaricb004c52018-05-30 18:07:23 +00005[ -n "`pidof bcm_user_appl`" ] && killall bcm_user_appl
6[ -n "`pidof bcm.user`" ] && killall bcm.user
Shad Ansaricb004c52018-05-30 18:07:23 +00007[ -n "`pidof voltha_bal_driver`" ] && killall voltha_bal_driver
Shad Ansarid0eaf752018-08-16 00:26:12 +00008# service bal_core_dist stop
9# service openolt stop
10[ -n "`pidof bal_core_dist`" ] && killall bal_core_dist
11rm -f /var/run/bal_core_dist.pid
Shad Ansari9fb007d2018-05-14 18:31:38 +000012[ -n "`pidof openolt`" ] && killall openolt
Shad Ansarid0eaf752018-08-16 00:26:12 +000013rm -f /var/run/openolt.pid
Shad Ansari6cd46a62018-05-13 23:20:51 +000014
15# unload drivers
16echo "unload kernel drivers"
17[ -n "`lsmod | grep bcm_coop_dba_linux`" ] && rmmod bcm_coop_dba_linux && sleep 1
18[ -n "`lsmod | grep bcm_dev_ctrl_linux`" ] && rmmod bcm_dev_ctrl_linux && sleep 1
19[ -n "`lsmod | grep i2c_devs`" ] && rmmod i2c_devs && sleep 1
Shad Ansaricb004c52018-05-30 18:07:23 +000020[ -n "`lsmod | grep trmux`" ] && rmmod trmux && sleep 1
21[ -n "`lsmod | grep fld`" ] && rmmod fld && sleep 1
Shad Ansari6cd46a62018-05-13 23:20:51 +000022[ -n "`lsmod | grep os_linux`" ] && rmmod os_linux && sleep 1
23[ -n "`lsmod | grep ll_pcie`" ] && rmmod ll_pcie && sleep 1
24[ -n "`lsmod | grep linux_user_bde`" ] && rmmod linux-user-bde && sleep 1
25[ -n "`lsmod | grep linux_kernel_bde`" ] && rmmod linux-kernel-bde && sleep 1
26rm -rf /dev/maple_i2c
27rm -rf /dev/bcm_log
28rm -rf /dev/maple_dev_ctrl
29rm -rf /dev/linux-user-bde
30rm -rf /dev/linux-kernel-bde
31rm -rf /dev/coop_dba
32
Shad Ansari9fb007d2018-05-14 18:31:38 +000033rm -rf /opt/bcm68620
34rm -rf /run/bcm68620
35
36rm -rf /broadcom
37
Shad Ansari9fb007d2018-05-14 18:31:38 +000038rm -rf /usr/local/lib/libgrpc++.so.1
39rm -rf /usr/local/lib/libgrpc.so.5
Shad Ansarif1e0bc82018-05-21 17:51:45 +000040rm -rf /usr/local/lib/libbal_api_dist.so
41