Skip to content

Commit

Permalink
v142
Browse files Browse the repository at this point in the history
+ Ensure alsa-utils are installed when selecting any sound card
+ Sparky SBC image prep notes:
https://github.com/Fourdee/DietPi/issues/699
  • Loading branch information
Fourdee committed Jan 10, 2017
1 parent f0efcfd commit 0ed12a4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
12 changes: 12 additions & 0 deletions PREP_SYSTEM_FOR_DIETPI.sh
Expand Up @@ -454,6 +454,18 @@ dpkg-reconfigure tzdata #Europe > London
dpkg-reconfigure keyboard-configuration #Keyboard must be plugged in for this to work!
dpkg-reconfigure locales # en_GB.UTF8 as default and only installed locale

#??? Sparky SBC ONLY: Blacklist GPU and touch screen modules: https://github.com/Fourdee/DietPi/issues/699#issuecomment-271362441
cat << _EOF_ > /etc/modprobe.d/disable_sparkysbc_touchscreen.conf
blacklist ctp_gsl3680
_EOF_

cat << _EOF_ > /etc/modprobe.d/disable_sparkysbc_gpu.conf
blacklist pvrsrvkm
blacklist drm
blacklist videobuf2_vmalloc
blacklist bc_example
_EOF_

#??? RPI ONLY: Scroll lock fix for RPi by Midwan: https://github.com/Fourdee/DietPi/issues/474#issuecomment-243215674
cat << _EOF_ > /etc/udev/rules.d/50-leds.rules
ACTION=="add", SUBSYSTEM=="leds", ENV{DEVPATH}=="*/input*::scrolllock", ATTR{trigger}="kbd-scrollock"
Expand Down
14 changes: 5 additions & 9 deletions dietpi/func/dietpi-set_hardware
Expand Up @@ -1222,17 +1222,13 @@ _EOF_
rm /etc/asound.conf &> /dev/null

# - Pre-Reqs for any soundcard
if [ "$INPUT_DEVICE_VALUE" != 'none' ]; then
if (( ! $(dpkg --get-selections | grep -ci -m1 '^alsa-utils') )); then

if (( ! $(dpkg --get-selections | grep -ci -m1 '^alsa-utils') )); then

/DietPi/dietpi/func/dietpi-notify 2 "Installing alsa-utils. Please wait..."
apt-get install -y alsa-utils
if (( $? != 0 )); then

/DietPi/dietpi/func/dietpi-notify 1 "Unable to install alsa-utils."
/DietPi/dietpi/func/dietpi-notify 2 "Installing alsa-utils. Please wait..."
apt-get install -y alsa-utils
if (( $? != 0 )); then

fi
/DietPi/dietpi/func/dietpi-notify 1 "Unable to install alsa-utils."

fi

Expand Down

0 comments on commit 0ed12a4

Please sign in to comment.