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