Skip to content

Commit

Permalink
Change scheduler N2 (#34)
Browse files Browse the repository at this point in the history
* Change scheduler N2

* Add shellcheck

* fix lint
  • Loading branch information
pvizeli authored Aug 5, 2020
1 parent c29ba95 commit 3b76921
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
16 changes: 15 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ pr:

variables:
- name: versionHadolint
value: 'v1.16.3'
value: 'v1.17.2'
- name: versionShellCheck
value: "v0.7.0"

jobs:

Expand All @@ -24,3 +26,15 @@ jobs:
-v $(pwd)/.hadolint.yaml:/.hadolint.yaml:ro \
hadolint/hadolint:$(versionHadolint) < Dockerfile
displayName: 'Run Hadolint'
- job: "ShellCheck"
pool:
vmImage: "ubuntu-latest"
steps:
- script: sudo docker pull koalaman/shellcheck:$(versionShellCheck)
displayName: "Install ShellCheck"
- script: |
shopt -s globstar
sudo docker run --rm -i \
-v $(pwd):/mnt:ro koalaman/shellcheck:$(versionShellCheck) -s bash **/{*.sh,run}
displayName: "Run ShellCheck"
2 changes: 1 addition & 1 deletion rootfs/etc/cont-init.d/alsa-mixer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ fi
for control in /dev/snd/control*
do
bashio::log.info "Adjust ALSA mixer settings for $control"
soundconfig $control
soundconfig "$control"
done
9 changes: 7 additions & 2 deletions rootfs/etc/cont-init.d/pulse-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
# ==============================================================================
ALSA_CARDS="$(aplay -l)"

# BCM2835
# RaspberryPi
if echo "${ALSA_CARDS}" | grep -q "\[bcm2835 ALSA\]"; then
bashio::log.info "Found BCM2835 card"
bashio::log.info "Found RaspberryPi system"

sed -i "s/module-udev-detect/module-udev-detect tsched=0/" /etc/pulse/system.pa
# Odroid N2
elif echo "${ALSA_CARDS}" | grep -q "\[G12B-ODROID-N2\]"; then
bashio::log.info "Found Odroid N2 system"

sed -i "s/module-udev-detect/module-udev-detect tsched=0/" /etc/pulse/system.pa
fi

0 comments on commit 3b76921

Please sign in to comment.