hello,
I'm surprised that no one replied, but anyway, just an update: it
seems I've managed to resolve the problem with this short ifstated(8)
config:
==
# loglevel debug
ping = '(ping -q -c 1 -t 1 192.168.1.1 /dev/null every 10)'
state one {
if !$ping
set-state two
}
state two {
init {
run logger -p console.notice -t ifstated 'Restarting network!'
run /etc/rc.d/netif restart ral0
}
if $ping
set-state one
}
==
that's about it.
cheers,
reinis
On Feb 3, 2008 10:17 PM, Reinis Ivanovs [EMAIL PROTECTED] wrote:
hello,
I've noticed that my wireless connection tends to drop once in a while
and only restores itself after a relatively longish period. I'm
dealing with it now by connecting a laptop by wire (the box doesn't
have a screen or a keyboard) and running /etc/rc.d/netif restart
ral0, but that's a bother. googling didn't bring up any useful
results, so I'm wondering, what are the best ways to mitigate or fix
this (aside from using a wire)? I'm considering writing a simple
script that'd constantly ping my router and restart the wlan interface
if it stops responding, but perhaps there's something pre-made or more
simple than that available?
cheers,
reinis
--
http://untu.ms/
--
http://untu.ms/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]