From 565bb030376f3c2ef90dafebfdca433902edccaf Mon Sep 17 00:00:00 2001 From: Erich Eickmeyer Date: Sat, 30 May 2020 22:35:36 -0700 Subject: [PATCH] Add new shellprocess for fixing audio perms --- ubuntustudio/modules/shellprocess_fix_audio_perms.conf | 6 ++++++ ubuntustudio/settings.conf | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 ubuntustudio/modules/shellprocess_fix_audio_perms.conf diff --git a/ubuntustudio/modules/shellprocess_fix_audio_perms.conf b/ubuntustudio/modules/shellprocess_fix_audio_perms.conf new file mode 100644 index 0000000..2f63165 --- /dev/null +++ b/ubuntustudio/modules/shellprocess_fix_audio_perms.conf @@ -0,0 +1,6 @@ +--- +dontChroot: false +timeout: 30 +script: + - command: "if [ -f /etc/security/limits.d/audio.conf.disabled ]; then mv /etc/security/limits.d/audio.conf.disabled /etc/security/limits.d/audio.conf; fi" + timeout: 10 diff --git a/ubuntustudio/settings.conf b/ubuntustudio/settings.conf index 50ac858..92dea5b 100644 --- a/ubuntustudio/settings.conf +++ b/ubuntustudio/settings.conf @@ -20,6 +20,9 @@ instances: - id: add386arch module: shellprocess config: shellprocess_add386arch.conf +- id: fix_audio_perms + module: shellprocess + config: shellprocess_fix_audio_perms.conf sequence: - show: @@ -48,6 +51,7 @@ sequence: - initramfscfg - initramfs - grubcfg + - shellprocess@fix_audio_perms - contextualprocess@before_bootloader - bootloader - contextualprocess@after_bootloader