diff --git a/network/pn51 b/network/pn51 new file mode 100644 index 00000000..ef277ba8 --- /dev/null +++ b/network/pn51 @@ -0,0 +1,28 @@ +#!/bin/bash + +# T&M Hansson IT AB © - 2021, https://www.hanssonit.se/ +# Copyright © 2021 Simon Lindner (https://github.com/szaimen) + +true +SCRIPT_NAME="PN51 Network Drivers" +SCRIPT_EXPLAINER="This installs the correct drivers for the 2.5GB LAN card in the PN51 ASUS" +# shellcheck source=lib.sh +source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) + +# Check for errors + debug code and abort if something isn't right +# 1 = ON +# 0 = OFF +DEBUG=0 +debug_mode + +# Check if root +root_check + +install_if_not build-essentials + +curl_to_dir https://github.com/nextcloud/vm/blob/pn51/network r8125-9.005.06.tar.bz2 /tmp +cd /tmp || exit +tar-xf r8125-9.005.06.tar.bz2 + +cd r8125-9.005.06 +./autorun diff --git a/network/r8125-9.005.06.tar.bz2 b/network/r8125-9.005.06.tar.bz2 new file mode 100644 index 00000000..3da4ae4b Binary files /dev/null and b/network/r8125-9.005.06.tar.bz2 differ