LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   restart wireless nic (https://www.linuxquestions.org/questions/slackware-14/restart-wireless-nic-313263/)

jasone 04-14-2005 02:40 PM

restart wireless nic
 
Hi!

I know this is a newbie question but it's also slackware specific so I decided to post here anyway.

I simply need the command line to restart my wireless nic (pc-card) in slack. All I could find was general linux but it didn't work.

What I did was: /etc/init.d/pcmcia restart
and my answer was: No such file or directory.

Thanks in advance for helpful replies!

gbonvehi 04-14-2005 03:34 PM

You need this Slackware packages (you may already have it): http://www.slackware.com/pb/download...s-3.2.8-i486-1
And use: /etc/rc.d/rc.pcmcia restart
Remember that init.d applies to those distributions using System V init style, Slackware uses BSD style (it has a compatibility package for System V, but that's another story ;) ).

jasone 04-14-2005 04:04 PM

Thanks for the reply!

I do have the file rc.pcmcia in my /etc/init.d/ directory. Doesn't that mean I've already got the package you was talking about? I took the full install. Well the: /etc/rc.d/rc.pcmcia restart don't work so I guess I need to know how to find out if it's installed or not. Help someone?

Edit:

I would like to make it clear that the nic is up and running in monitor mode (rfmon) and when I pop it out and put it back in it works in regular mode but I want to do this within linux instead...

gbonvehi 04-14-2005 06:55 PM

Quote:

Well the: /etc/rc.d/rc.pcmcia restart don't work so I guess I need to know how to find out if it's installed or not. Help someone?
What's the error you get? Maybe the file is not executable, try:
Code:

chmod +x /etc/rc.d/rc.pcmcia && /etc/rc.d/rc.pcmcia start

jasone 04-15-2005 12:45 AM

Thanks for the tip! I'm not at home with my box right now so I can't test it but:

When I'm in that directory the error is: rc.pcmcia: command not found. When I'm in another directory I'll get bash:/etc/init.d/rc.pcmcia no such file or directory...

Or something like that. My rc.pcmcia has a * after the last character and is green which would mean it's executable. Am I wrong?

jasone 04-15-2005 12:55 PM

If someone in the future need to know:

I chmod:ed /etc/rc.d/rc.pcmcia with the flag -x and after that with 751 which did it for me and I can restart my nic!

Thank you all for your help. It's because people like you this is one of the best forums I ever participated in...


All times are GMT -5. The time now is 03:45 AM.