mirror of
https://github.com/hassio-addons/hassio-vagrant.git
synced 2025-05-07 12:31:25 +00:00
🔥 Removes audio support
This commit is contained in:
parent
a98abea9ff
commit
cb2cdd7579
2 changed files with 0 additions and 22 deletions
4
Vagrantfile
vendored
4
Vagrantfile
vendored
|
@ -139,10 +139,6 @@ module HassioCommunityAddons
|
||||||
vbox.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
|
vbox.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
|
||||||
vbox.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
|
vbox.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
|
||||||
vbox.customize ['modifyvm', :id, '--usb', 'on', '--usbehci', 'on']
|
vbox.customize ['modifyvm', :id, '--usb', 'on', '--usbehci', 'on']
|
||||||
soundtype = ::Vagrant::Util::Platform.windows? ? 'dsound' : 'coreaudio'
|
|
||||||
vbox.customize ['modifyvm', :id, '--audio', soundtype,
|
|
||||||
'--audiocontroller', 'hda',
|
|
||||||
'--audioin', 'on', '--audioout', 'on']
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
# rubocop:enable Metrics/MethodLength
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
|
18
provision.sh
18
provision.sh
|
@ -19,8 +19,6 @@ readonly HASSIO_INSTALLER="https://raw.githubusercontent.com/home-assistant/hass
|
||||||
readonly DOCKER_DOWNLOAD="https://download.docker.com/linux"
|
readonly DOCKER_DOWNLOAD="https://download.docker.com/linux"
|
||||||
readonly NETDATA_INSTALLER="https://my-netdata.io/kickstart-static64.sh"
|
readonly NETDATA_INSTALLER="https://my-netdata.io/kickstart-static64.sh"
|
||||||
readonly APT_REQUIREMENTS=(
|
readonly APT_REQUIREMENTS=(
|
||||||
alsa
|
|
||||||
alsa-utils
|
|
||||||
apparmor-utils
|
apparmor-utils
|
||||||
apt-transport-https
|
apt-transport-https
|
||||||
avahi-daemon
|
avahi-daemon
|
||||||
|
@ -30,7 +28,6 @@ readonly APT_REQUIREMENTS=(
|
||||||
dkms
|
dkms
|
||||||
jq
|
jq
|
||||||
network-manager
|
network-manager
|
||||||
oem-audio-hda-daily-dkms
|
|
||||||
socat
|
socat
|
||||||
software-properties-common
|
software-properties-common
|
||||||
)
|
)
|
||||||
|
@ -48,24 +45,10 @@ readonly APT_REQUIREMENTS=(
|
||||||
# None
|
# None
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
install_requirements() {
|
install_requirements() {
|
||||||
add-apt-repository -y ppa:ubuntu-audio-dev/alsa-daily
|
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y "${APT_REQUIREMENTS[@]}"
|
apt-get install -y "${APT_REQUIREMENTS[@]}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
# Configures audio device
|
|
||||||
#
|
|
||||||
# Arguments:
|
|
||||||
# None
|
|
||||||
# Returns:
|
|
||||||
# None
|
|
||||||
# ------------------------------------------------------------------------------
|
|
||||||
configure_audio() {
|
|
||||||
gpasswd --add vagrant audio
|
|
||||||
modprobe snd-hda-intel
|
|
||||||
}
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Installs the Docker engine
|
# Installs the Docker engine
|
||||||
#
|
#
|
||||||
|
@ -185,7 +168,6 @@ show_post_up_message() {
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
main() {
|
main() {
|
||||||
install_requirements
|
install_requirements
|
||||||
configure_audio
|
|
||||||
install_docker
|
install_docker
|
||||||
install_netdata
|
install_netdata
|
||||||
install_portainer
|
install_portainer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue