Changeset 87


Ignore:
Timestamp:
Sep 2, 2010, 9:36:49 PM (9 years ago)
Author:
amain
Message:

Fix #2, firmware was not copied to debwrt-kernel-modules tar.gz

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debwrt/trunk/rules/extract_kmodpkg.sh

    r5 r87  
    2121mkdir -p $tardir
    2222
    23 # Extra from data.tar.gz only /lib
    2423n=`basename $kmodp`
    2524nn=${n/.ipk/}
    26 #echo -n "I: Extracting $nn..."
    27 #( cat $kmodp\
    28 #| gunzip \
    29 #| tar -C . -x -f - -O ./data.tar.gz \
    30 #| tar xzf - -C $tardir ./lib ) || true
     25
     26# Extra from data.tar.gz only /lib
    3127tar xzf $kmodp -C $tardir ./data.tar.gz
    3228tar xzf $tardir/data.tar.gz -C $tardir ./lib
    33 echo -n "I: Copy kernel modules(s) from $nn..."
     29
     30echo "I: Copy kernel modules(s) from $nn..."
    3431findc=0
    3532first=1
    36 for kmod in `find $tardir -type f -name "*.ko"`; do
     33for kmod in `find $tardir -type f ! -name "data.tar.gz"`; do
    3734   kmodf=`basename $kmod`
     35
     36   # Only copy kernel module files if they do not already exist!
    3837   findc=$(find $droot -type f -name $kmodf | wc -l)
    3938   if [ "$findc" -eq 0 ]; then
     
    4241          mkdir -p $todir
    4342      cp -a $kmod $droot/$tokmod
    44           if [ "$first" = 1 ]; then echo; first=0; fi;
    45           echo "I:    - $kmodf"
     43      echo "I:    - $kmodf (yes)"
     44   else
     45      echo "I:    - $kmodf (no)"
    4646   fi
    4747done
    48 
    49 if [ "$findc" == 0 ]; then echo "I: done"; else echo "no"; fi
    5048
    5149rm -rf $tardir
Note: See TracChangeset for help on using the changeset viewer.