LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-21-2017, 09:53 AM   #1
igadoter
Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: slackware 12.2, scientific linux 6.4, knoppix 7.2, salix 14.1
Posts: 895

Rep: Reputation: Disabled
I need a service to stop or start rc.inet wla2_start(stop)


I mean something like that: when kernel reports
Code:
 b43-phy0: Radio hardware status changed to DISABLED
sevice should call 'rc.inet1 wlan2_stop' to clean things up. And after something like that
Code:
b43-phy0: Radio hardware status changed to ENABLED
service should call 'rc.inet1 wlan2_start'. More or less. Simply I want to mimic somehow switching on/off wifi with hardware button. Script rc.inet1 by itself can't do such thing. It simply does not restart by itself wifi.
 
Old 04-21-2017, 03:12 PM   #2
rob.rice
Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 998

Rep: Reputation: 158Reputation: 158
"ifconfig wlan2 down "
will turn wlan2 off like a hardware switch

"ifconfig wlan2 up "
will switch it back on

on my system the wifi adapter picks up the old configuration no problem
but I'm running wicd

so you may need to run
"ifconfig wlan2 up;/etc/rc.d/rc.inet1 wlan2_start "
to bring it back up

Last edited by rob.rice; 04-21-2017 at 03:16 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I can stop a service, but not start the same service from php? jesse.gibson Linux - Software 3 02-24-2016 01:07 PM
How can start or stop iptables service? hack3rcon Debian 3 10-18-2015 10:34 AM
puppet needs to stop a service, do something, then start the service edwardcode Programming 1 12-03-2012 01:58 PM
[SOLVED] Start/stop SSH service? dilzniksan Debian 3 06-12-2010 08:47 PM
AWK- processing data inside start/stop pairs but ignoring start/stop lines cliffoij Programming 2 10-15-2008 06:17 AM


All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration