diff -r 2fa43746d972 -r 5b349a0b1e2b devices/update.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/devices/update.sh Mon Oct 27 13:38:51 2014 +0100 @@ -0,0 +1,20 @@ +#!/bin/bash + +set -x + +KERNELDIR=/data/kernel/linux-3.6.11 +PREVER=3.4 +KERNELVER=3.6 + +for f in $KERNELDIR/drivers/net/ethernet/realtek/{8139too,r8169}.c; do + echo $f + b=$(basename $f) + o=${b/\./-$KERNELVER-orig.} + e=${b/\./-$KERNELVER-ethercat.} + cp -v $f $o + chmod 644 $o + cp -v $o $e + op=${b/\./-$PREVER-orig.} + ep=${b/\./-$PREVER-ethercat.} + diff -u $op $ep | patch -p1 $e +done