install dkms pre-script execution

This commit is contained in:
Daniel Hansson 2021-07-22 13:10:49 +02:00 committed by GitHub
parent 9ba65e0e84
commit efa7d760b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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