Logoj0ke.net Open Build Service > Projects > GFS > kernel-source > check-supported-list
Sign Up | Log In

File check-supported-list of Package kernel-source (Revision db43c5e4b69f00d007dea2869c112efe)

Currently displaying revision db43c5e4b69f00d007dea2869c112efe, show latest

 
1
#! /bin/sh
2
3
sourcedir=$1
4
modpath=$2
5
6
# Check for modules not listed in supported.conf: First, for each module
7
# in the list, set mod_$module=1
8
for module in $($sourcedir/guards --list < $sourcedir/supported.conf \
9
        | sed -e 's,.*/,,'); do
10
    m=${module##*/}
11
    m=${m%.ko}
12
    eval mod_${m//-/_}=1
13
done
14
15
# Check if any installed module was not listed
16
status=
17
cd $modpath
18
for module in $(find . -name '*.ko' | sort); do
19
    module=${module%.ko}
20
    m=${module##*/}
21
    m=${m//-/_}
22
    m="mod_$m"
23
    if [ -z "${!m}" ]; then
24
    if [ -z "$status" ]; then
25
        echo "Modules not listed in supported.conf:"
26
        status=1
27
    fi
28
    echo ${module#./}
29
    fi
30
done
31
32
exit $status
33