From efa7d760b0197da7761561df076165cb27704794 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Thu, 22 Jul 2021 13:10:49 +0200 Subject: [PATCH] install dkms pre-script execution --- nextcloud_install_production.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index c6a2ef89..10721fdd 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -931,6 +931,16 @@ then echo "\4" >> /etc/issue fi +# Fix Realtek on PN51 +if asuspn51 +then + # Upgrade Realtek drivers + print_text_in_color "$ICyan" "Upgrading Realtek firmware..." + install_if_not dkms + curl_to_dir https://raw.githubusercontent.com/nextcloud/vm/master/network/asusnuc pn51.sh "$SCRIPTS" + bash "$SCRIPTS"/pn51.sh +fi + # Update if it's the Home/SME Server if home_sme_server then @@ -939,15 +949,6 @@ then run_script STATIC update fi -# Fix Realtek on PN51 -if asuspn51 -then - # Upgrade Realtek drivers - print_text_in_color "$ICyan" "Upgrading Realtek firmware..." - curl_to_dir https://raw.githubusercontent.com/nextcloud/vm/master/network/asusnuc pn51.sh "$SCRIPTS" - bash "$SCRIPTS"/pn51.sh -fi - # Force MOTD to show correct number of updates if is_this_installed update-notifier-common then