What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Run a Script when Wireless Network Goes Up or Down?

HarryMuscle

Senior Member
Is there anywhere to run a script when the wireless network is brought up or brought down? I have some scripted ebtables rules that disappear whenever a change is made on the router that restarts the wireless network. I noticed in the logs it mentions:

Aug 29 20:14:31 rc_service: httpd 315:notify_rc restart_wireless

and then my ebtables rules disappear. Any way to tie into this process to rerun my script?

Thanks,
Harry
 
Not at this time, sorry.
 
You could just write a daemon process, or even just a reoccurring if then else loop to continually scan your log for the desired string to trigger the "then" statement.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Back
Top