Changeset 766 for branches


Ignore:
Timestamp:
Jul 27, 2016, 7:10:19 AM (3 years ago)
Author:
ehem
Message:

Finish adjustments for getting this script fully working again on current
Debian. This fixes modules needed for systems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/contrib/debian/linux-image/build.sh

    r765 r766  
    9494for mod in ${modules}
    9595do
    96         if ! [ -f /usr/src/${mod}.tar.bz2 ]
     96        if ! [ -f /usr/src/${mod}.tar.* ]
    9797        then
    9898                echo $0\: Linux module \"${mod}\" is absent, please install package 1>&2
     
    184184        if [ ! -e "${linuxdir}/modules/${mod}" ]
    185185        then
    186                 case "/usr/src/${mod}.tar.*" in
     186                modfile=`echo /usr/src/${mod}.tar.*`
     187                case "${modfile}" in
    187188                *.xz)
    188189                        unpack="unxz -c"
     
    194195                        unpack="gunzip -c"
    195196                ;;
     197                *)
     198                        echo $0: Fatal, don\'t know how to unpack file \""${modfile}"\" 1>&2
     199                        exit 2
    196200                esac
    197                 echo ${unpack} \""/usr/src/${mod}.tar.*"\" \| tar -C \""${linuxdir}"\" -xf -
    198                 ${unpack} "/usr/src/${mod}.tar.*" | tar -C "${linuxdir}" -xf -
     201                echo ${unpack} \""${modfile}"\" \| tar -C \""${linuxdir}"\" -xf -
     202                ${unpack} "${modfile}" | tar -C "${linuxdir}" -xf - || exit 1
    199203        fi
    200204done
Note: See TracChangeset for help on using the changeset viewer.