Skip to content

Commit 69bf167

Browse files
authored
Fix permissions (#113)
* Fix permissions * fix s6 * Fix lint
1 parent 30fc96b commit 69bf167

File tree

8 files changed

+10
-6
lines changed

8 files changed

+10
-6
lines changed

rootfs/etc/cont-init.d/alsa-mixer.sh

100644100755
File mode changed.

rootfs/etc/cont-init.d/filesystem.sh

100644100755
File mode changed.

rootfs/etc/cont-init.d/pulse-config.sh

100644100755
File mode changed.

rootfs/etc/fix-attrs.d/scripts

Lines changed: 0 additions & 1 deletion
This file was deleted.

rootfs/etc/services.d/alsa/run

100644100755
File mode changed.

rootfs/etc/services.d/pulseaudio/finish

100644100755
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
#!/usr/bin/execlineb -S0
1+
#!/usr/bin/env bashio
22
# ==============================================================================
3-
# Take down the S6 supervision tree when PulseAudio fails
3+
# Take down the S6 supervision tree when service fails
4+
# s6-overlay docs: https://github.com/just-containers/s6-overlay
45
# ==============================================================================
5-
if { s6-test ${1} -ne 0 }
6-
if { s6-test ${1} -ne 256 }
76

8-
s6-svscanctl -t /var/run/s6/services
7+
if [[ "$1" -ne 0 ]] && [[ "$1" -ne 256 ]]; then
8+
bashio::log.warning "Halt Audio plugin"
9+
exec /run/s6/basedir/bin/halt
10+
fi
11+
12+
bashio::log.info "Service restart after closing"

rootfs/etc/services.d/pulseaudio/run

100644100755
File mode changed.

rootfs/usr/bin/soundconfig

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
2+
# shellcheck disable=SC2086,SC2001,SC1091
23
# Source: https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/audio/alsa-utils/scripts/soundconfig
34

45
# SPDX-License-Identifier: GPL-2.0-or-later

0 commit comments

Comments
 (0)