diff --git a/lib/compilation-prepare.sh b/lib/compilation-prepare.sh index daba8f642..ad818134d 100644 --- a/lib/compilation-prepare.sh +++ b/lib/compilation-prepare.sh @@ -199,18 +199,18 @@ compilation_prepare() # Updated USB network drivers for RTL8152/RTL8153 based dongles that also support 2.5Gbs variants - # Looks unstable / disabled - #if linux-version compare "${version}" ge 5.4 && [ $LINUXFAMILY != mvebu64 ] && [ $LINUXFAMILY != rk322x ] && [ $LINUXFAMILY != odroidxu4 ] && [ $EXTRAWIFI == yes ]; then - # - # # attach to specifics tag or branch - # local rtl8152ver="branch:master" - # - # display_alert "Adding" "Drivers for 2.5Gb RTL8152/RTL8153 USB dongles ${rtl8152ver}" "info" - # fetch_from_repo "https://github.com/igorpecovnik/realtek-r8152-linux" "rtl8152" "${rtl8152ver}" "yes" - # cp -R "${SRC}/cache/sources/rtl8152/${rtl8152ver#*:}"/{r8152.c,compatibility.h} \ - # "$kerneldir/drivers/net/usb/" - # - #fi + + if linux-version compare "${version}" ge 5.4 && [ $LINUXFAMILY != mvebu64 ] && [ $LINUXFAMILY != rk322x ] && [ $LINUXFAMILY != odroidxu4 ] && [ $EXTRAWIFI == yes ]; then + + # attach to specifics tag or branch + local rtl8152ver="branch:master" + + display_alert "Adding" "Drivers for 2.5Gb RTL8152/RTL8153 USB dongles ${rtl8152ver}" "info" + fetch_from_repo "https://github.com/igorpecovnik/realtek-r8152-linux" "rtl8152" "${rtl8152ver}" "yes" + cp -R "${SRC}/cache/sources/rtl8152/${rtl8152ver#*:}"/{r8152.c,compatibility.h} \ + "$kerneldir/drivers/net/usb/" + + fi # Wireless drivers for Realtek 8189ES chipsets