Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix permissions #113

Merged
merged 3 commits into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified rootfs/etc/cont-init.d/alsa-mixer.sh
100644 → 100755
Empty file.
Empty file modified rootfs/etc/cont-init.d/filesystem.sh
100644 → 100755
Empty file.
Empty file modified rootfs/etc/cont-init.d/pulse-config.sh
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion rootfs/etc/fix-attrs.d/scripts

This file was deleted.

Empty file modified rootfs/etc/services.d/alsa/run
100644 → 100755
Empty file.
14 changes: 9 additions & 5 deletions rootfs/etc/services.d/pulseaudio/finish
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/usr/bin/execlineb -S0
#!/usr/bin/env bashio
# ==============================================================================
# Take down the S6 supervision tree when PulseAudio fails
# Take down the S6 supervision tree when service fails
# s6-overlay docs: https://github.com/just-containers/s6-overlay
# ==============================================================================
if { s6-test ${1} -ne 0 }
if { s6-test ${1} -ne 256 }

s6-svscanctl -t /var/run/s6/services
if [[ "$1" -ne 0 ]] && [[ "$1" -ne 256 ]]; then
bashio::log.warning "Halt Audio plugin"
exec /run/s6/basedir/bin/halt
fi

bashio::log.info "Service restart after closing"
Empty file modified rootfs/etc/services.d/pulseaudio/run
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions rootfs/usr/bin/soundconfig
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# shellcheck disable=SC2086,SC2001,SC1091
# Source: https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/audio/alsa-utils/scripts/soundconfig

# SPDX-License-Identifier: GPL-2.0-or-later
Expand Down