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