enable bluetooth service once bluebomb has run successfully

This commit is contained in:
urmum-69 2020-04-09 11:15:45 +00:00 committed by GitHub
parent c063a56901
commit 2794a8f7e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,6 +194,11 @@ execute() {
printf "\n* Executing BlueBomb...\n"
printf "$sudo0 ./bluebomb-$arch ./stage0/$arg1$arg2.bin stage1.bin\n"
$sudo0 ./bluebomb-$arch ./stage0/$arg1$arg2.bin stage1.bin
printf "* Enabling the Bluetooth service... (you may be prompted for your password)\n"
case "$init" in
"systemd" ) $sudo0 systemctl enable --now bluetooth.service ;;
"openrc" ) $sudo0 rc-service bluetooth start ;;
esac
credit
}