You are correct. I was patching while inside of the same directory as the file to patch.
I was able to patch now, from ../files directory. ------------------------------------------------------------------------ OPENWRT/backfire/feeds/packages/net $ patch -p1< batman-adv_load-module-when-needed.patch
patching file batman-adv/files/lib/batman-adv/config.sh
Hunk #2 succeeded at 36 with fuzz 1 (offset -3 lines).
Hunk #3 succeeded at 54 (offset -3 lines).
patching file batman-adv/files/usr/sbin/batman-adv
Hunk #1 succeeded at 25 (offset -1 lines).
patching file batman-adv/files/etc/hotplug.d/net/99-batman-adv
------------------------------------------------------------------------ After the patch i compiled and used the builds. I tried one build from source and another made with the image builder
At boot; batman-adv still does not load both interfaces, only 1. (wlan0) In other to load both: batman-adv restart must be executed.
config 'mesh' 'bat0' option 'ap_isolation' '0' option 'bonding' '0' option 'aggregation' '1' option 'fragmentation' '1' option 'gw_bandwidth' '3mbit/384kbit' option 'gw_mode' 'client' option 'gw_sel_class' '5' option 'orig_interval' '1000' option 'vis_mode' 'client' option 'interfaces' 'wlan0 eth0.0
This concludes that the patch might not be working. Correct me if i am wrong.
------------------------------------------------------------------------
On 03/27/2012 05:58 AM, Marek Lindner wrote:
On Tuesday, March 27, 2012 00:43:11 HeXiLeD wrote:
I have been trying to apply the patch which tries to fix the openwrt scripts in regards having batman-adv to bring up all it's attached interfaces but something seems not to be working.
Seems to be same problem we already discussed in the IRC channel.
$ patch -p2 < batman-adv_load-module-when-needed.patch 99-batman-adv
That is not the way to apply a patch. Omit the last argument.
$ patch -p1< batman-adv_load-module-when-needed.patch can't find file to patch at input line 3
Wrong path.
$ patch -p1< batman-adv_load-module-when-needed.patch can't find file to patch at input line 3
Wrong path.
You have to find the correct package path and don't supply too many arguments to make it work.
Regards, Marek