You are not logged in.

#1 2009-06-11 23:47:33

evilgold
Member
Registered: 2008-10-30
Posts: 120

[solved]Running a curl command after netcfg login

At work our wireless network has a splash screen that requires clicking on "I Agree" before logging in.

Normally i can run:

curl -d redirect="http://www.freegeek.org" -d mode_login="I Agree" http://192.168.240.65/ >/dev/null

But i would like for this to be automated if possible with netcfg. Is this possible?

Last edited by evilgold (2009-06-12 00:11:41)

Offline

#2 2009-06-11 23:58:42

Shapeshifter
Member
Registered: 2008-03-11
Posts: 230

Re: [solved]Running a curl command after netcfg login

Put it in POST_UP='' at the end of your conf file.

/etc/network.d/examples/complete.example has all the infos you need.

# Commands to run at various stages of configuration
PRE_UP=
POST_UP=
PRE_DOWN=
POST_DOWN="some command

Last edited by Shapeshifter (2009-06-12 00:00:55)

Offline

#3 2009-06-12 00:10:53

evilgold
Member
Registered: 2008-10-30
Posts: 120

Re: [solved]Running a curl command after netcfg login

Thanks thats exactly what i needed!

Offline

Board footer

Powered by FluxBB