#!/bin/bash [[ "$(systemctl is-active bluetooth)" == 'active' ]] && $(systemctl stop bluetooth || :) || systemctl restart bluetooth