You are not logged in.
Hello guys,
is there a way to let netcfg automatically reconnect to a specific profile after the signal level had dropped under a user-defined limit?
In short; netcfg should execute the following two commands, when the signal rate is very low:
netcfg down profile
netcfg profileThank you for your answers. .)
Offline
You'd probably have to write a simple script to do that, a busy-wait sort of thing (sleep 10 seconds, check, sleep another 10 seconds).
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
networkmanager does reconnections if the connection is lost, netcfg not. I doubt I would engage in writing a script in somewhat another tool does out of the box.
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline
You could add a cronjob for something like (IP-Adress could be a switch or gateway in your homenetwork, or some url outside - ping www.google.com, f.e.)
but you would have to add netcfg -r PROFILENAME to /etc/sudoers.
#!/bin/bash
if ping -c 1 -w 1 -q 192.168.254.255 &>/dev/null; then
echo ""&>/dev/null
else
sudo /usr/bin/netcfg -r PROFILENAME
fiSorry for not having a better idea.
Last edited by Moo-Crumpus (2010-03-11 16:53:19)
Frumpus ♥ addict
[mu'.krum.pus], [frum.pus]
Offline