@@ -11,6 +11,7 @@ EUTHERPE_PASSWD=eutherpe
11
11
SHOULD_SETUP_ETH_RESCUE_IFACE=0
12
12
EUTHERPE_DEFAULT_PORT=8080
13
13
SHOULD_BUILD_AND_INSTALL_BLUEZ_ALSA=1
14
+ SHOULD_REBOOT=1
14
15
15
16
has_internet_conectivity () {
16
17
result=0
@@ -418,6 +419,20 @@ else
418
419
echo " === Okay, you are root user :) let's start..."
419
420
fi
420
421
422
+ if [[ ` is_active pulseaudio` == 1 ]]; then
423
+ echo " bootstrap warn: Eutherpe uses ALSA and bluez-ALSA, you need to uninstall or at least deactivate pulseaudio before proceeding." >&2
424
+ echo " aborted."
425
+ exit 1
426
+ elif [[ ` is_active pipewire` == 1 ]]; then
427
+ echo " bootstrap warn: Eutherpe uses ALSA and bluez-ALSA, you need to uninstall or at least deactivate pipewire before proceeding." >&2
428
+ echo " aborted."
429
+ exit 1
430
+ elif [[ ` is_active wireplumber` == 1]]; then
431
+ echo " boostrap warn: Eutherpe uses ALSA and bluez-ALSA, you need to uninstall or at least deactivate wireplumber before proceeding." >&2
432
+ echo " aborted."
433
+ exit 1
434
+ fi
435
+
421
436
if [[ ` is_active eutherpe` == 1 ]]; then
422
437
echo " bootstrap info: An instance of eutherpe.service is running, let's stop it..."
423
438
systemctl stop eutherpe
440
455
441
456
if [[ ` is_active bluealsa` == 1 ]]; then
442
457
SHOULD_BUILD_AND_INSTALL_BLUEZ_ALSA=0
458
+ SHOULD_REBOOT=0
443
459
fi
444
460
445
461
if [[ ` has_eutherpe_user` == 1 ]] ; then
446
462
echo " === Nice, $EUTHERPE_USER user already exists."
447
463
elif [[ ` add_eutherpe_user` == 0 ]] ; then
448
464
echo " === The $EUTHERPE_USER user was added."
465
+ SHOULD_REBOOT=1
449
466
fi
450
467
451
468
echo " === bootstrap info: Adding $EUTHERPE_USER to sudo group..."
@@ -582,6 +599,9 @@ if [[ `is_active eutherpe-usb-watchdog` == 0 ]] ; then
582
599
fi
583
600
584
601
echo " === bootstrap info: Nice, eutherpe-usb-watchdog.service is running."
585
- echo " === bootstrap info: Done. Reboot within 3 seconds..."
586
-
587
- sleep 3 && shutdown -r now
602
+ if [[ $SHOULD_REBOOT == 1 ]]; then
603
+ echo " === bootstrap info: Done. Reboot within 3 seconds..."
604
+ sleep 3 && shutdown -r now
605
+ else
606
+ echo " === bootstrap info: Done."
607
+ fi
0 commit comments