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 | cb004c5 | 2018-05-30 18:07:23 +0000 | [diff] [blame] | 7 | [ -n "`pidof voltha_bal_driver`" ] && killall voltha_bal_driver |
Shad Ansari | d0eaf75 | 2018-08-16 00:26:12 +0000 | [diff] [blame] | 8 | # service bal_core_dist stop |
| 9 | # service openolt stop |
| 10 | [ -n "`pidof bal_core_dist`" ] && killall bal_core_dist |
| 11 | rm -f /var/run/bal_core_dist.pid |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 12 | [ -n "`pidof openolt`" ] && killall openolt |
Shad Ansari | d0eaf75 | 2018-08-16 00:26:12 +0000 | [diff] [blame] | 13 | rm -f /var/run/openolt.pid |
Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 14 | |
| 15 | # unload drivers |
| 16 | echo "unload kernel drivers" |
| 17 | [ -n "`lsmod | grep bcm_coop_dba_linux`" ] && rmmod bcm_coop_dba_linux && sleep 1 |
| 18 | [ -n "`lsmod | grep bcm_dev_ctrl_linux`" ] && rmmod bcm_dev_ctrl_linux && sleep 1 |
| 19 | [ -n "`lsmod | grep i2c_devs`" ] && rmmod i2c_devs && sleep 1 |
Shad Ansari | cb004c5 | 2018-05-30 18:07:23 +0000 | [diff] [blame] | 20 | [ -n "`lsmod | grep trmux`" ] && rmmod trmux && sleep 1 |
| 21 | [ -n "`lsmod | grep fld`" ] && rmmod fld && sleep 1 |
Shad Ansari | 6cd46a6 | 2018-05-13 23:20:51 +0000 | [diff] [blame] | 22 | [ -n "`lsmod | grep os_linux`" ] && rmmod os_linux && sleep 1 |
| 23 | [ -n "`lsmod | grep ll_pcie`" ] && rmmod ll_pcie && sleep 1 |
| 24 | [ -n "`lsmod | grep linux_user_bde`" ] && rmmod linux-user-bde && sleep 1 |
| 25 | [ -n "`lsmod | grep linux_kernel_bde`" ] && rmmod linux-kernel-bde && sleep 1 |
| 26 | rm -rf /dev/maple_i2c |
| 27 | rm -rf /dev/bcm_log |
| 28 | rm -rf /dev/maple_dev_ctrl |
| 29 | rm -rf /dev/linux-user-bde |
| 30 | rm -rf /dev/linux-kernel-bde |
| 31 | rm -rf /dev/coop_dba |
| 32 | |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 33 | rm -rf /opt/bcm68620 |
| 34 | rm -rf /run/bcm68620 |
| 35 | |
| 36 | rm -rf /broadcom |
| 37 | |
Shad Ansari | 9fb007d | 2018-05-14 18:31:38 +0000 | [diff] [blame] | 38 | rm -rf /usr/local/lib/libgrpc++.so.1 |
| 39 | rm -rf /usr/local/lib/libgrpc.so.5 |
Shad Ansari | f1e0bc8 | 2018-05-21 17:51:45 +0000 | [diff] [blame] | 40 | rm -rf /usr/local/lib/libbal_api_dist.so |
| 41 | |