Scale driver for RTL8126

enable developer mode:
sudo /usr/local/libexec/disable-rootfs-protection
(You cant undo this)

unmount/remount:
mount -o remount,rw ‘boot-pool/ROOT/24.04.0/usr’
(Make sure you use the version you have installed, I had to use 24.04.2.2)

Then you do this:
export PATH=/usr/bin:/usr/sbin

And then you do this:
chmod +x /bin/apt*
chmod +x /usr/bin/dpkg

Then you download the realtek driver (Realtek’s website has a dumb download, I downloaded the file, uploaded it to a free filehost, then used wget to download it to my TrueNAS install)

Then I unpacked the tar.bz2 file

Then I ran the autorun.sh with Bash
bash -x ./autorun.sh

Rebooted, and it worked fine.

Hope this helps. I literally created an account on the forum to share this.

need to install dev-tools
install build-essential
before run : bash -x ./autorun.sh