Creating an OpenWRT patch - AtlantsEmbedded/IntelliPi GitHub Wiki

Using the 'diff' utility - use the command in the following fashion:

diff -urN yourOriginalUnmodifiedFile modifiedFile > yourPatch.patch

Now inside yourPatch.patch, it will look like below:

--- yourOriginalUnmodifiedFile 2015-10-15 10:08:57.904764115 -0700 +++ modifiedFile 2015-10-15 10:11:16.388761368 -0700 @@ -1,22 +1,24 @@ #!/bin/bash -PATH=/usr/bin:/home/pi/wiringPi/gpio +# wpi pin naming convention +PIN_IN=7 +PIN_OUT=8

Modify your patch to look like this:

--- a/shutdowncheck 2015-10-15 10:08:57.904764115 -0700 +++ b/shutdowncheck 2015-10-15 10:11:16.388761368 -0700 @@ -1,22 +1,24 @@ #!/bin/bash -PATH=/usr/bin:/home/pi/wiringPi/gpio +# wpi pin naming convention +PIN_IN=7 +PIN_OUT=8

To use this patch, you can copy it into your package feeds folder like this:

/feeds/non-atom/your-package/patches/