blob: d2b23352215880d540fd44d7d0c89680f1d35298 [file] [log] [blame]
Shad Ansari6cd46a62018-05-13 23:20:51 +00001#!/bin/bash
2
3# kill CLI applications
4echo "kill running time application"
5[ -n "`pidof bcm_user_appl`" ] && killall bcm_user_appl
6[ -n "`pidof bcm.user`" ] && killall bcm.user
7[ -n "`pidof bcm_sdn_agent`" ] && killall bcm_sdn_agent
8[ -n "`pidof bal_core_dist`" ] && killall bal_core_dist
9[ -n "`pidof voltha_bal_driver`" ] && killall voltha_bal_driver
10
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
16[ -n "`lsmod | grep os_linux`" ] && rmmod os_linux && sleep 1
17[ -n "`lsmod | grep ll_pcie`" ] && rmmod ll_pcie && sleep 1
18[ -n "`lsmod | grep linux_user_bde`" ] && rmmod linux-user-bde && sleep 1
19[ -n "`lsmod | grep linux_kernel_bde`" ] && rmmod linux-kernel-bde && sleep 1
20rm -rf /dev/maple_i2c
21rm -rf /dev/bcm_log
22rm -rf /dev/maple_dev_ctrl
23rm -rf /dev/linux-user-bde
24rm -rf /dev/linux-kernel-bde
25rm -rf /dev/coop_dba
26