Comment 74 for bug 1799988

Revision history for this message
David Rasch (rasch) wrote :

Yes, you're correct. Updated snippet:

tee /lib/systemd/system-sleep/rfkill-bluetooth-workaround <<EOF
#!/bin/sh
set -e

if [ "${1}" = "pre" ]; then
        rfkill block bluetooth
elif [ "${1}" = "post" ]; then
        rfkill unblock bluetooth
fi
EOF
chmod 755 /lib/systemd/system-sleep/rfkill-bluetooth-workaround