Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # kill CLI applications |
| 4 | echo "kill running time application" |
Shad Ansari | cb004c5 | 2018-05-30 18:07:23 +0000 | [diff] [blame] | 5 | [ -n "`pidof bcm_user_appl`" ] && killall bcm_user_appl |
| 6 | [ -n "`pidof bcm.user`" ] && killall bcm.user |
Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 7 | [ -n "`pidof bal_core_dist`" ] && killall bal_core_dist |
Shad Ansari | cb004c5 | 2018-05-30 18:07:23 +0000 | [diff] [blame] | 8 | [ -n "`pidof voltha_bal_driver`" ] && killall voltha_bal_driver |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 9 | [ -n "`pidof openolt`" ] && killall openolt |
Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 10 | |
| 11 | # unload drivers |
| 12 | echo "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 Ansari | cb004c5 | 2018-05-30 18:07:23 +0000 | [diff] [blame] | 16 | [ -n "`lsmod | grep trmux`" ] && rmmod trmux && sleep 1 |
| 17 | [ -n "`lsmod | grep fld`" ] && rmmod fld && sleep 1 |
Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 18 | [ -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 |
| 22 | rm -rf /dev/maple_i2c |
| 23 | rm -rf /dev/bcm_log |
| 24 | rm -rf /dev/maple_dev_ctrl |
| 25 | rm -rf /dev/linux-user-bde |
| 26 | rm -rf /dev/linux-kernel-bde |
| 27 | rm -rf /dev/coop_dba |
| 28 | |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 29 | rm -rf /opt/bcm68620 |
| 30 | rm -rf /run/bcm68620 |
| 31 | |
| 32 | rm -rf /broadcom |
| 33 | |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 34 | rm -rf /usr/local/lib/libgrpc++.so.1 |
| 35 | rm -rf /usr/local/lib/libgrpc.so.5 |
Shad Ansari | f1e0bc8 | 2018-05-21 17:51:45 +0000 | [diff] [blame] | 36 | rm -rf /usr/local/lib/libbal_api_dist.so |
| 37 | |