Blame SOURCES/depmodconf

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