#!/bin/sh set -e if test -f /etc/pulse/client.conf.d/00-disable-autospawn.conf; then sed -i "s/autospawn=no/# autospawn=no/" /etc/pulse/client.conf.d/00-disable-autospawn.conf fi #if test ! -f /etc/systemd/system/pulseaudio.service; then # echo "[Unit] #Description=PulseAudio system server #[Service] #Type=notify #ExecStart=pulseaudio --daemonize=no --system --realtime --log-target=journal #[Install] #WantedBy=multi-user.target" > /etc/systemd/system/pulseaudio.service # systemctl --system enable pulseaudio.service # systemctl --system start pulseaudio.service #fi