blob: 3ff3ca5f686661134934b62fb402afa99550896e [file] [log] [blame]
Shad Ansari6cd46a62018-05-13 23:20:51 +00001#!/bin/bash
2
3# kill CLI applications
4echo "kill running time application"
Shad Ansari6cd46a62018-05-13 23:20:51 +00005[ -n "`pidof bal_core_dist`" ] && killall bal_core_dist
Shad Ansari9fb007d2018-05-14 18:31:38 +00006[ -n "`pidof openolt`" ] && killall openolt
Shad Ansari6cd46a62018-05-13 23:20:51 +00007
8# unload drivers
9echo "unload kernel drivers"
10[ -n "`lsmod | grep bcm_coop_dba_linux`" ] && rmmod bcm_coop_dba_linux && sleep 1
11[ -n "`lsmod | grep bcm_dev_ctrl_linux`" ] && rmmod bcm_dev_ctrl_linux && sleep 1
12[ -n "`lsmod | grep i2c_devs`" ] && rmmod i2c_devs && sleep 1
13[ -n "`lsmod | grep os_linux`" ] && rmmod os_linux && sleep 1
14[ -n "`lsmod | grep ll_pcie`" ] && rmmod ll_pcie && sleep 1
15[ -n "`lsmod | grep linux_user_bde`" ] && rmmod linux-user-bde && sleep 1
16[ -n "`lsmod | grep linux_kernel_bde`" ] && rmmod linux-kernel-bde && sleep 1
17rm -rf /dev/maple_i2c
18rm -rf /dev/bcm_log
19rm -rf /dev/maple_dev_ctrl
20rm -rf /dev/linux-user-bde
21rm -rf /dev/linux-kernel-bde
22rm -rf /dev/coop_dba
23
Shad Ansari9fb007d2018-05-14 18:31:38 +000024rm -rf /opt/bcm68620
25rm -rf /run/bcm68620
26
27rm -rf /broadcom
28
29rm -rf /usr/local/lib/libgrpc++_reflection.so.1
30rm -rf /usr/local/lib/libgrpc++.so.1
31rm -rf /usr/local/lib/libgrpc.so.5
Shad Ansarif1e0bc82018-05-21 17:51:45 +000032rm -rf /usr/local/lib/libbal_api_dist.so
33