improve bluetooth restart script
This commit is contained in:
		@@ -1,12 +1,13 @@
 | 
				
			|||||||
#!/usr/bin/env bash
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
set -euo pipefail
 | 
					set -euox pipefail
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pkill -f blueman-manager || true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo stopping bluetooth...
 | 
					echo stopping bluetooth...
 | 
				
			||||||
sudo systemctl stop bluetooth-autoconnect
 | 
					 | 
				
			||||||
sudo systemctl stop bluetooth
 | 
					sudo systemctl stop bluetooth
 | 
				
			||||||
sudo rmmod btusb
 | 
					sudo modprobe -r btusb
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo starting bluetooth...
 | 
					echo starting bluetooth...
 | 
				
			||||||
sudo modprobe btusb
 | 
					sudo modprobe btusb
 | 
				
			||||||
sudo systemctl start bluetooth
 | 
					sudo systemctl start bluetooth
 | 
				
			||||||
sudo systemctl start bluetooth-autoconnect
 | 
					sudo rfkill unblock bluetooth
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user