Blame SOURCES/depmodconf

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