-
-
Notifications
You must be signed in to change notification settings - Fork 18
phreaknet.sh: patches to kernel header and DAHDI installation for Raspberry Pi OS 13+ #71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added a check for openSUSE Leap in the package manager detector section.
openSUSE uses a different path format for kernel headers that was not checked for by install_kernel_headers(), resulting in an error. This commit adds detection for these paths.
In openSUSE, one of the "kernel-*-devel" packages is required to build kernel modules, otherwise PhreakScript fails to find the kernel build directory. This commit adds the "default" version (a safe assumption, given it's for the standard kernel) of this package to the list of kernel module-related packages that zypper is told to install.
openSUSE does not place kernel build directories in /usr/lib/linux-kbuild-*. This commit adds a check for /usr/src/linux-*, where it is located, in case the first path doesn't exist.
…y code I forgot a newline in the "no build directory found" message, so I added one.
Because autoconf wasn't installed, the DAHDI tools installation failed, so I added it to the list of packages.
…n unsupported modules. After installing libtool and automake, DAHDI finally built sucessfully, so I added them to the prereqs. I also discovered that openSUSE disables the loading of "unsupported" (i.e. external, not signed by SUSE) kernel modules, so I added a message that displays on zypper-based systems that have installed DAHDI that tells the user how to enable loading them, otherwise DAHDI won't work.
The "raspberrypi-kernel-headers" package appears to have been removed with RPi OS 13 "trixie", with kernel headers instead being provided as more traditional "linux-headers-*" packages. This commit adds a check for this condition to ensure the correct package is installed.
…n) 13 RPi OS (and possibly Debian) 13 uses the full kernel version (everything before the first hyphen, and including the local version string) for the kbuild directories, which are still in /usr/lib. This commit adds a check for this directory format, and also corrects the line that gets the kernel version to exclude everything after the kernel/local version.
InterLinked1
approved these changes
Feb 2, 2026
Owner
InterLinked1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the future, please squash your changes if possible into a single commit. I can do it at merge, but the commit message gets a little wonky with all the individual commit messages getting merged together.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These commits make three changes to phreaknet.sh: