You are not logged in.

#1 2010-03-03 02:41:53

manouchk
Member
Registered: 2008-07-29
Posts: 212

netcfg 2.5 PRE_UP problem

Hi,

I'm recently observing a problem for connecting in ad-hoc mode with netcfg

I was using this configuration to connect

more /etc/network.d/hero

CONNECTION="wireless"
INTERFACE=wlan0
PRE_UP="ifconfig wlan0 down; iwconfig wlan0 mode ad-hoc"
#QUIRKS=(prescan predown)
SCAN="yes"
SECURITY="none"
ESSID="hero"
IP="dhcp"
TIMEOUT=20

With new netcfg version, it fails to connect.

I though can connect manually to the unencrypted connection doing this:

ifconfig wlan0 down
iwconfig wlan0 mode ad-hoc
iwconfig wlan0 essid hero
dhcpcd wlan0

ANy solution for that?

Offline

#2 2010-03-04 15:49:21

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,209
Website

Re: netcfg 2.5 PRE_UP problem

I read in the wiki that whatever you put in your PRE/POST-scripts should have a zero output or netcfg will stop connecting. You should end every command with '2>/dev/null' without the quotes.

f.e.
PRE_UP="ifconfig wlan0 down 2>/dev/null; sleep 2; iwconfig wlan0 mode ad-hoc 2>/dev/null"

HTH

Offline

#3 2010-03-27 12:38:21

ichbinesderelch
Member
Registered: 2008-01-17
Posts: 203

Re: netcfg 2.5 PRE_UP problem

I have the same problem right now connecting to my android phone(i suggested essid hero comes from the hero phone wink), did you find any solution on how to connect with netcfg?
my profiles for connecting to the phone looks the same, but still no result, getting
> WPA Authentication/Association Failed
error..
though connect with ifconfig/iwconfig works without problems.. reading the wiki and searching the forum didnt help much.
regards

Last edited by ichbinesderelch (2010-03-27 12:38:38)

Offline

#4 2010-12-24 16:19:40

manouchk
Member
Registered: 2008-07-29
Posts: 212

Re: netcfg 2.5 PRE_UP problem

CONNECTION="ethernet"
DESCRIPTION="wireless connection to android tether"
INTERFACE=wlan0
IP="dhcp"
PRE_UP="iwconfig wlan0 essid AndroidTether mode Ad-Hoc key s:password"

Thank you ichbinesderelch for you idea. It works when running manually. I just think that I can't get the profile to run automatically at bootime using net-auto-wireless Deamon.

I think it is a bug of netcfg. What do you think about that?

Last edited by manouchk (2010-12-24 17:08:51)

Offline

#5 2010-12-24 17:11:05

manouchk
Member
Registered: 2008-07-29
Posts: 212

Re: netcfg 2.5 PRE_UP problem

There is a similar thread:

https://bbs.archlinux.org/viewtopic.php … 21#p869921

There is a solution for manual connection there. It though may not work with the deamon net-auto-wireless. I'm checking this assumption right now!

Offline

Board footer

Powered by FluxBB