From: HeXiLeD <hexiled@nixbits.net>
Subject: Re: [B.A.T.M.A.N.] batman-adv load module patch
Date: Wed, 28 Mar 2012 06:21:00 -0400 [thread overview]
Message-ID: <4F72E60C.2010300@nixbits.net> (raw)
In-Reply-To: <201203271258.57514.lindner_marek@yahoo.de>
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
>
next prev parent reply other threads:[~2012-03-28 10:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201203261241.32890.lindner_marek@yahoo.de>
2012-03-26 21:43 ` [B.A.T.M.A.N.] batman-adv load module patch HeXiLeD
2012-03-27 9:58 ` Marek Lindner
2012-03-28 10:21 ` HeXiLeD [this message]
2012-03-28 11:36 ` Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F72E60C.2010300@nixbits.net \
--to=hexiled@nixbits.net \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox