blob: 6660aaad753656e7e8b87a090b8c1bb21475d6b8 [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 Ansari6cd46a62018-05-13 23:20:51 +00007[ -n "`pidof bal_core_dist`" ] && killall bal_core_dist
Shad Ansaricb004c52018-05-30 18:07:23 +00008[ -n "`pidof voltha_bal_driver`" ] && killall voltha_bal_driver
Shad Ansari9fb007d2018-05-14 18:31:38 +00009[ -n "`pidof openolt`" ] && killall openolt
Shad Ansari6cd46a62018-05-13 23:20:51 +000010
11# unload drivers
12echo "unload kernel drivers"
13[ -n "`lsmod | grep bcm_coop_dba_linux`" ] && rmmod bcm_coop_dba_linux && sleep 1
14[ -n "`lsmod | grep bcm_dev_ctrl_linux`" ] && rmmod bcm_dev_ctrl_linux && sleep 1
15[ -n "`lsmod | grep i2c_devs`" ] && rmmod i2c_devs && sleep 1
Shad Ansaricb004c52018-05-30 18:07:23 +000016[ -n "`lsmod | grep trmux`" ] && rmmod trmux && sleep 1
17[ -n "`lsmod | grep fld`" ] && rmmod fld && sleep 1
Shad Ansari6cd46a62018-05-13 23:20:51 +000018[ -n "`lsmod | grep os_linux`" ] && rmmod os_linux && sleep 1
19[ -n "`lsmod | grep ll_pcie`" ] && rmmod ll_pcie && sleep 1
20[ -n "`lsmod | grep linux_user_bde`" ] && rmmod linux-user-bde && sleep 1
21[ -n "`lsmod | grep linux_kernel_bde`" ] && rmmod linux-kernel-bde && sleep 1
22rm -rf /dev/maple_i2c
23rm -rf /dev/bcm_log
24rm -rf /dev/maple_dev_ctrl
25rm -rf /dev/linux-user-bde
26rm -rf /dev/linux-kernel-bde
27rm -rf /dev/coop_dba
28
Shad Ansari9fb007d2018-05-14 18:31:38 +000029rm -rf /opt/bcm68620
30rm -rf /run/bcm68620
31
32rm -rf /broadcom
33
34rm -rf /usr/local/lib/libgrpc++_reflection.so.1
35rm -rf /usr/local/lib/libgrpc++.so.1
36rm -rf /usr/local/lib/libgrpc.so.5
Shad Ansarif1e0bc82018-05-21 17:51:45 +000037rm -rf /usr/local/lib/libbal_api_dist.so
38