Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Create autoinstall-beta-mt7902.sh#2

Open
RichyKunBv wants to merge 1 commit intohmtheboy154:mainfrom
RichyKunBv:patch-1
Open

Create autoinstall-beta-mt7902.sh#2
RichyKunBv wants to merge 1 commit intohmtheboy154:mainfrom
RichyKunBv:patch-1

Conversation

@RichyKunBv
Copy link
Copy Markdown

No description provided.

@RichyKunBv
Copy link
Copy Markdown
Author

README.md

I don't use Git well, sorry.

@hmtheboy154
Copy link
Copy Markdown
Owner

hmtheboy154 commented Sep 24, 2025

README.md

I don't use Git well, sorry.

you should learn how to..... otherwise I don't think I can be able to merge this

@RichyKunBv
Copy link
Copy Markdown
Author

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.

Comment on lines +46 to +49
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo -e "${ROJO}Error: Please run this script with sudo.${DEFAULT}"
exit 1
fi
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown

@User7-hm User7-hm Oct 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need an additional pattern for manjaro but this is how you'll do it

Suggested change
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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
set -e
set -euo pipefail

http://redsymbol.net/articles/unofficial-bash-strict-mode/

@User7-hm
Copy link
Copy Markdown

README.md

I don't use Git well, sorry.

Simply edit the README.md file and run git add . and git commit if you want an additional commit or git commit --amend to add it to the previous commit

rm -rf gen4-mt7902

echo -e "${ROJO} Cloning driver repository...${DEFAULT}"
git clone https://github.com/hmtheboy154/gen4-mt7902.git
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
git clone https://github.com/hmtheboy154/gen4-mt7902.git
git clone --depth 1 https://github.com/hmtheboy154/gen4-mt7902.git

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants