add drivers for PN51 network (#2049)

* add drivers for PN51 network

* install script
This commit is contained in:
Daniel Hansson 2021-07-19 12:15:52 +02:00 committed by GitHub
parent 457b6a6913
commit d536e2c959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

28
network/pn51 Normal file
View File

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

Binary file not shown.