LCD-show/usr/fbcp-ili9341/kernel/stop_kernel_module.sh
2021-01-27 08:18:51 +00:00

11 lines
442 B
Bash

# Kill user space driver program first if it happens to be running, because otherwise shutting down the kernel
# module would crash the system if the userland program was still accessing it.
echo Killing existing instances of user space driver program fbcp-ili9341
sudo pkill fbcp-ili9341
sudo pkill fbcp-ili9341-stable
# Now safe to tear down the module
echo Stopping kernel module bcm2835_spi_display.ko
sudo rmmod bcm2835_spi_display.ko