2 # SPDX-License-Identifier: (GPL-2.0-only OR LGPL-2.1-only)
4 # First argument is the path to the kernel headers.
9 if [ -f "${KPATH}/localversion-rt" ]; then
10 VERSIONFILE
="${KPATH}/localversion-rt"
12 elif [ -f "${KPATH}/source/localversion-rt" ]; then
13 VERSIONFILE
="${KPATH}/source/localversion-rt"
19 RT_PATCH_VERSION
=$
(sed -rn 's/^-rt([0-9]+)$/\1/p' "${VERSIONFILE}")
21 if [ "x${RT_PATCH_VERSION}" = "x" ]; then
26 echo "${RT_PATCH_VERSION}"
This page took 0.029525 seconds and 4 git commands to generate.