Commit e0394184 authored by Igor Pecovnik's avatar Igor Pecovnik
Browse files

Added Radarr and Sonarr to the software install, small RFC

parent d2ab5b5d
...@@ -55,7 +55,7 @@ Login as root and type: ...@@ -55,7 +55,7 @@ Login as root and type:
**Running this utility on 3rd party Debian based distributions** **Running this utility on 3rd party Debian based distributions**
# Install dependencies # Install dependencies
apt install git bc expect rcconf dialog network-manager sunxi-tools iptables resolvconf debconf-utils unzip build-essential html2text apt-transport-https html2text dirmngr software-properties-common libpam-google-authenticator qrencode apt install git psmisc curl bc expect rcconf dialog network-manager sunxi-tools iptables resolvconf debconf-utils unzip build-essential html2text apt-transport-https html2text dirmngr software-properties-common libpam-google-authenticator qrencode
git clone https://github.com/armbian/config git clone https://github.com/armbian/config
cd config cd config
......
...@@ -41,7 +41,7 @@ if [[ -f ${BASH_SOURCE}-submenu ]]; then source ${BASH_SOURCE}-submenu; ...@@ -41,7 +41,7 @@ if [[ -f ${BASH_SOURCE}-submenu ]]; then source ${BASH_SOURCE}-submenu;
elif [[ -f /usr/lib/armbian-config/submenu.sh ]]; then source /usr/lib/armbian-config/submenu.sh; elif [[ -f /usr/lib/armbian-config/submenu.sh ]]; then source /usr/lib/armbian-config/submenu.sh;
else exit 1; else exit 1;
fi fi
sleep 1
if [[ -f ${BASH_SOURCE}-functions ]]; then source ${BASH_SOURCE}-functions; if [[ -f ${BASH_SOURCE}-functions ]]; then source ${BASH_SOURCE}-functions;
elif [[ -f /usr/lib/armbian-config/functions.sh ]]; then source /usr/lib/armbian-config/functions.sh; elif [[ -f /usr/lib/armbian-config/functions.sh ]]; then source /usr/lib/armbian-config/functions.sh;
else exit 1; else exit 1;
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
# Functions: # Functions:
# main # main
# exceptions
# check_if_installed # check_if_installed
# is_package_manager_running # is_package_manager_running
# display_qr_code # display_qr_code
...@@ -48,6 +49,33 @@ function main(){ ...@@ -48,6 +49,33 @@ function main(){
#
# naming exceptions for packages
#
function exceptions ()
{
TARGET_FAMILY=$LINUXFAMILY
UBOOT_BRANCH=$TARGET_BRANCH # uboot naming is different
if [[ $TARGET_BRANCH == "default" ]]; then TARGET_BRANCH=""; else TARGET_BRANCH="-"$TARGET_BRANCH; fi
# pine64
if [[ $TARGET_FAMILY == pine64 ]]; then
TARGET_FAMILY="sunxi64"
fi
# allwinner legacy kernels
if [[ $TARGET_FAMILY == sun*i ]]; then
TARGET_FAMILY="sunxi"
if [[ $UBOOT_BRANCH == "default" ]]; then
TARGET_FAMILY=$(cat /proc/cpuinfo | grep "Hardware" | sed 's/^.*Allwinner //' | awk '{print $1;}')
fi
fi
}
# #
# check dpkg status of $1 -- currently only 'not installed at all' case catched # check dpkg status of $1 -- currently only 'not installed at all' case catched
# #
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
# ip_editor # ip_editor
# wlan_edit_basic # wlan_edit_basic
# wlan_edit # wlan_edit
# exceptions
# wlan_exceptions # wlan_exceptions
# check_and_warn # check_and_warn
# get_wlan_interface # get_wlan_interface
...@@ -350,34 +349,6 @@ function wlan_edit () ...@@ -350,34 +349,6 @@ function wlan_edit ()
#
# naming exceptions for packages
#
function exceptions ()
{
TARGET_FAMILY=$LINUXFAMILY
UBOOT_BRANCH=$TARGET_BRANCH # uboot naming is different
if [[ $TARGET_BRANCH == "default" ]]; then TARGET_BRANCH=""; else TARGET_BRANCH="-"$TARGET_BRANCH; fi
# pine64
if [[ $TARGET_FAMILY == pine64 ]]; then
TARGET_FAMILY="sunxi64"
fi
# allwinner legacy kernels
if [[ $TARGET_FAMILY == sun*i ]]; then
TARGET_FAMILY="sunxi"
if [[ $UBOOT_BRANCH == "default" ]]; then
TARGET_FAMILY=$(cat /proc/cpuinfo | grep "Hardware" | sed 's/^.*Allwinner //' | awk '{print $1;}')
fi
fi
}
# #
# here we add wifi exceptions # here we add wifi exceptions
# #
......
...@@ -140,10 +140,16 @@ function jobs () ...@@ -140,10 +140,16 @@ function jobs ()
if ! is_package_manager_running; then if ! is_package_manager_running; then
TARGET_BRANCH=$BRANCH TARGET_BRANCH=$BRANCH
exceptions "$BRANCH" exceptions "$BRANCH"
if [[ -d /etc/armbian ]]; then
INSTALL_PKG="linux-headers${TARGET_BRANCH}-${TARGET_FAMILY}";
else
INSTALL_PKG="linux-headers-$(uname -r | sed 's/'-$(dpkg --print-architecture)'//')";
fi
if [[ -n $(dpkg -l | grep linux-headers) ]]; then if [[ -n $(dpkg -l | grep linux-headers) ]]; then
debconf-apt-progress -- apt-get -y remove linux-headers${TARGET_BRANCH}-${TARGET_FAMILY} debconf-apt-progress -- apt-get -y purge ${INSTALL_PKG}
else else
debconf-apt-progress -- apt-get -y install linux-headers${TARGET_BRANCH}-${TARGET_FAMILY} debconf-apt-progress -- apt-get -y install ${INSTALL_PKG}
fi fi
fi fi
;; ;;
......
This diff is collapsed.
This diff is collapsed.
debian-software
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment