Commit 316d5e2
authored
phreaknet.sh: more openSUSE compatibility patches (#70)
* Update phreaknet.sh
Added a check for openSUSE Leap in the package manager detector section.
* install: Add kernel header detection for openSUSE
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.
* install: Add missing kernel package for zypper
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.
* install: Check for build directory on openSUSE
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.
* install: add a missing newline to the previously-added build directory code
I forgot a newline in the "no build directory found" message, so I added one.
* install: zypper: added autoconf
Because autoconf wasn't installed, the DAHDI tools installation failed, so I added it to the list of packages.
* install: add two more zypper packages, add message for zypper users on 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.1 parent 0e6f5b6 commit 316d5e2
1 file changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
1079 | | - | |
| 1079 | + | |
1080 | 1080 | | |
1081 | 1081 | | |
1082 | 1082 | | |
| |||
2006 | 2006 | | |
2007 | 2007 | | |
2008 | 2008 | | |
2009 | | - | |
| 2009 | + | |
| 2010 | + | |
2010 | 2011 | | |
2011 | 2012 | | |
2012 | 2013 | | |
| |||
2046 | 2047 | | |
2047 | 2048 | | |
2048 | 2049 | | |
2049 | | - | |
| 2050 | + | |
| 2051 | + | |
2050 | 2052 | | |
2051 | 2053 | | |
2052 | 2054 | | |
| |||
2214 | 2216 | | |
2215 | 2217 | | |
2216 | 2218 | | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
2217 | 2226 | | |
2218 | 2227 | | |
2219 | 2228 | | |
| |||
4214 | 4223 | | |
4215 | 4224 | | |
4216 | 4225 | | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
4217 | 4230 | | |
4218 | 4231 | | |
4219 | 4232 | | |
| |||
0 commit comments