mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Merge pull request #471 from wjz304/patch-1
fix the problem of the description keyword in the "parm" of ".ko"
This commit is contained in:
commit
a32c9a4a94
@ -14,7 +14,7 @@ function getAllModules() {
|
|||||||
for F in `ls ${TMP_PATH}/modules/*.ko`; do
|
for F in `ls ${TMP_PATH}/modules/*.ko`; do
|
||||||
X=`basename ${F}`
|
X=`basename ${F}`
|
||||||
M=${X:0:-3}
|
M=${X:0:-3}
|
||||||
DESC=`modinfo ${F} | awk -F':' '/description/{ print $2}' | awk '{sub(/^[ ]+/,""); print}'`
|
DESC=`modinfo ${F} | awk -F':' '/description:/{ print $2}' | awk '{sub(/^[ ]+/,""); print}'`
|
||||||
[ -z "${DESC}" ] && DESC="${X}"
|
[ -z "${DESC}" ] && DESC="${X}"
|
||||||
echo "${M} \"${DESC}\""
|
echo "${M} \"${DESC}\""
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user