Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-laptop
On Tue, 2005-05-17 at 18:12 -0400, Zander Z365 wrote:
> How can I configure the startup script so that networking will not be
> started if the cable is not connected?
I have the following preup() function in my /etc/conf.d/net file:
preup() {
case ${IFACE} in
eth0)
ebegin "Checking link on ${IFACE}"
mii-tool ${IFACE} 2> /dev/null | grep -q 'link ok'
eend $?
;;
*)
;;
esac
}
Note: this is for use with baselayout-1.11.x.
Sincerely,
Brix
--
Henrik Brix Andersen <brix@g.o>
Gentoo Linux
|
| Attachment: |
|
signature.asc (This is a digitally signed message part)
|
|