Blame SOURCES/depmodconf

ddba73
#!/bin/bash
ddba73
VAR=${2}
ddba73
MAJOR=` echo $VAR | cut -f 1 -d "-" `
ddba73
VAR=${VAR##$MAJOR"-"}
ddba73
MINOR=` echo $VAR | cut -f 1 -d "." `
ddba73
kver=$MAJOR-$MINOR.*
ddba73
find $3 -name '*.ko' | sed 's|^.*/\([^/]*\)\.ko$|\1|' | sort -u | \
ddba73
while read -r module; do
ddba73
	echo "override $module $kver weak-updates/$1"
ddba73
done