Add neon support

This commit is contained in:
2022-01-10 15:24:17 -05:00
parent a5ff3d9fe1
commit d2ac84802f

View File

@@ -133,7 +133,7 @@ init() {
pkg_update(){ sudo dnf makecache; } pkg_update(){ sudo dnf makecache; }
pkg_query(){ rpm -q "$@"; } pkg_query(){ rpm -q "$@"; }
firewall_cmd(){ sudo firewall-cmd "$@"; } firewall_cmd(){ sudo firewall-cmd "$@"; }
elif [[ "$ID" =~ ^(debian|ubuntu|linuxmint)$ ]]; then elif [[ "$ID" =~ ^(debian|ubuntu|linuxmint|neon)$ ]]; then
pkg_install(){ sudo apt-get install -y -q0 "$@"; } pkg_install(){ sudo apt-get install -y -q0 "$@"; }
pkg_remove(){ sudo apt-get remove --auto-remove -y -q0 "$@"; } pkg_remove(){ sudo apt-get remove --auto-remove -y -q0 "$@"; }
pkg_update(){ sudo apt-get update -y -q0; } pkg_update(){ sudo apt-get update -y -q0; }
@@ -167,7 +167,7 @@ init() {
if [[ "$ID" =~ ^(fedora|centos|opensuse.*)$ ]]; then if [[ "$ID" =~ ^(fedora|centos|opensuse.*)$ ]]; then
MCPKG="MediaCenter" MCPKG="MediaCenter"
[[ "$version_source" == "user input" ]] && MCPKG="$MCPKG-$MCVERSION" [[ "$version_source" == "user input" ]] && MCPKG="$MCPKG-$MCVERSION"
elif [[ "$ID" =~ ^(debian|ubuntu|linuxmint)$ ]]; then elif [[ "$ID" =~ ^(debian|ubuntu|linuxmint|neon)$ ]]; then
MCPKG="mediacenter$MVERSION" MCPKG="mediacenter$MVERSION"
[[ "$version_source" == "user input" ]] && MCPKG="$MCPKG=$MCVERSION" [[ "$version_source" == "user input" ]] && MCPKG="$MCPKG=$MCVERSION"
fi fi
@@ -452,7 +452,7 @@ installPackage() {
fi fi
# Aliases # Aliases
if [[ "$ID" =~ ^(debian|ubuntu|linuxmint)$ ]]; then if [[ "$ID" =~ ^(debian|ubuntu|linuxmint|neon)$ ]]; then
declare -A PKG_ALIASES declare -A PKG_ALIASES
PKG_ALIASES["xorg-x11-utils"]="xorg-x11" PKG_ALIASES["xorg-x11-utils"]="xorg-x11"
PKG_ALIASES["rpm-build"]="rpm" PKG_ALIASES["rpm-build"]="rpm"
@@ -497,7 +497,7 @@ addRepo() {
baseurl=https://repos.bryanroessler.com/jriver baseurl=https://repos.bryanroessler.com/jriver
gpgcheck=0 gpgcheck=0
EOF' EOF'
elif [[ "$ID" =~ ^(debian|ubuntu|linuxmint)$ ]]; then elif [[ "$ID" =~ ^(debian|ubuntu|linuxmint|neon)$ ]]; then
# MVERSION depends on $BASE unless --mcversion is passed # MVERSION depends on $BASE unless --mcversion is passed
installPackage wget installPackage wget
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add - &>/dev/null wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add - &>/dev/null
@@ -898,7 +898,7 @@ openFirewall() {
firewall_cmd --add-service "$1" --permanent &>/dev/null firewall_cmd --add-service "$1" --permanent &>/dev/null
firewall_cmd --reload &>/dev/null firewall_cmd --reload &>/dev/null
fi fi
elif [[ "$ID" =~ ^(debian|ubuntu|linuxmint)$ ]]; then elif [[ "$ID" =~ ^(debian|ubuntu|linuxmin|neon)$ ]]; then
# Debian ufw package state is broken on fresh installations # Debian ufw package state is broken on fresh installations
installPackage ufw installPackage ufw
if [[ ! -f "/etc/ufw/applications.d/$1" ]]; then if [[ ! -f "/etc/ufw/applications.d/$1" ]]; then