fp@2547: #!/bin/bash fp@2547: fp@2547: set -x fp@2547: fp@2588: KERNELDIR=/data/kernel/linux-3.16.6 fp@2588: PREVER=3.14 fp@2588: KERNELVER=3.16 fp@2547: fp@2548: for f in $KERNELDIR/drivers/net/ethernet/{realtek/8139too,realtek/r8169,intel/e100}.c; do fp@2547: echo $f fp@2547: b=$(basename $f) fp@2547: o=${b/\./-$KERNELVER-orig.} fp@2547: e=${b/\./-$KERNELVER-ethercat.} fp@2547: cp -v $f $o fp@2547: chmod 644 $o fp@2547: cp -v $o $e fp@2547: op=${b/\./-$PREVER-orig.} fp@2547: ep=${b/\./-$PREVER-ethercat.} fp@2547: diff -u $op $ep | patch -p1 $e fp@2585: hg add $o $e fp@2547: done