Conversation
|
I don't use Git well, sorry. |
you should learn how to..... otherwise I don't think I can be able to merge this |
|
The file does work, but what I don't know how to use properly are the PRs. I've never gotten this far before :v I'm going to investigate how to use it properly to make the PR. |
| if [[ $(/usr/bin/id -u) -ne 0 ]]; then | ||
| echo -e "${ROJO}Error: Please run this script with sudo.${DEFAULT}" | ||
| exit 1 | ||
| fi |
There was a problem hiding this comment.
There's no need to run the script with sudo because you already prefixed the commands that need root with sudo
| echo -e "${VERDE} Dependencies installed.${DEFAULT}" | ||
| ;; | ||
| arch) | ||
| sudo pacman -S --noconfirm --needed git make dkms base-devel linux-headers |
There was a problem hiding this comment.
On manjaro there are multiple kernels so the kernel headers may not be the linux-headers package, instead it may be linux612-headers or linux616-headers
There was a problem hiding this comment.
You'll need an additional pattern for manjaro but this is how you'll do it
| sudo pacman -S --noconfirm --needed git make dkms base-devel linux-headers | |
| sudo pacman -S --noconfirm --needed git make dkms base-devel linux$(uname -r | sed -E 's/^([0-9]+)\.([0-9]+).*/\1\2/')-headers |
$ uname -r | sed -E 's/^([0-9]+)\.([0-9]+).*/\1\2/'
612
$ echo 3.43.22 | sed -E 's/^([0-9]+)\.([0-9]+).*/\1\2/'
343
$ echo 5.4 | sed -E 's/^([0-9]+)\.([0-9]+).*/\1\2/'
54
$ echo 5.4.111 | sed -E 's/^([0-9]+)\.([0-9]+).*/\1\2/'
54
| #Made by github.com/RichyKunBv with love | ||
|
|
||
| # Por si acaso xd. | ||
| set -e |
There was a problem hiding this comment.
| set -e | |
| set -euo pipefail |
Simply edit the README.md file and run |
| rm -rf gen4-mt7902 | ||
|
|
||
| echo -e "${ROJO} Cloning driver repository...${DEFAULT}" | ||
| git clone https://github.com/hmtheboy154/gen4-mt7902.git |
There was a problem hiding this comment.
| git clone https://github.com/hmtheboy154/gen4-mt7902.git | |
| git clone --depth 1 https://github.com/hmtheboy154/gen4-mt7902.git |
No description provided.