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 | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 5 | [ -n "`pidof bal_core_dist`" ] && killall bal_core_dist |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 6 | [ -n "`pidof openolt`" ] && killall openolt |
Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 7 | |
| 8 | # unload drivers |
| 9 | echo "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 |
| 17 | rm -rf /dev/maple_i2c |
| 18 | rm -rf /dev/bcm_log |
| 19 | rm -rf /dev/maple_dev_ctrl |
| 20 | rm -rf /dev/linux-user-bde |
| 21 | rm -rf /dev/linux-kernel-bde |
| 22 | rm -rf /dev/coop_dba |
| 23 | |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 24 | rm -rf /opt/bcm68620 |
| 25 | rm -rf /run/bcm68620 |
| 26 | |
| 27 | rm -rf /broadcom |
| 28 | |
| 29 | rm -rf /usr/local/lib/libgrpc++_reflection.so.1 |
| 30 | rm -rf /usr/local/lib/libgrpc++.so.1 |
| 31 | rm -rf /usr/local/lib/libgrpc.so.5 |