ghostbsd / issues

Issue tracker for GhostBSD
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

For GhostBSD-build, add the latest Realtek network driver for newer (2018 and later) mainboards and laptops as it is not available by default. #189

Open vimanuelt opened 1 week ago

vimanuelt commented 1 week ago

Describe the feature or enhancement.

For GhostBSD-build, the latest Realtek network driver for newer (2019 and later) mainboards and laptops is not available by default.

===

Here's an example of how to detect and update. This assumes the realtek-re-kmod package has been added by default.

Check for Realtek NIC and update /boot/loader.conf

latest_realtek_detected=$(pciconf -lv | grep -q "RTL8125" && echo "true")

if [ "$latest_realtek_detected" = "true" ]; then sysrc -f /boot/loader.conf if_re_load="YES" sysrc -f /boot/loader.conf if_re_name="/boot/modules/if_re.ko" fi

Why this request?

Enabling and using the latest Realtek network driver is needed for mainboards and laptops made after 2018.