Lines 619-625
Link Here
|
619 |
# # Test for link on the interface prior to bringing it up. This |
619 |
# # Test for link on the interface prior to bringing it up. This |
620 |
# # only works on some network adapters and requires the mii-diag |
620 |
# # only works on some network adapters and requires the mii-diag |
621 |
# # package to be installed. |
621 |
# # package to be installed. |
622 |
# if mii-tool ${IFACE} 2> /dev/null | grep -q 'no link'; then |
622 |
# if mii-tool "${IFACE}" 2> /dev/null | grep -q 'no link'; then |
623 |
# ewarn "No link on ${IFACE}, aborting configuration" |
623 |
# ewarn "No link on ${IFACE}, aborting configuration" |
624 |
# return 1 |
624 |
# return 1 |
625 |
# fi |
625 |
# fi |
Lines 627-637
Link Here
|
627 |
# # Test for link on the interface prior to bringing it up. This |
627 |
# # Test for link on the interface prior to bringing it up. This |
628 |
# # only works on some network adapters and requires the ethtool |
628 |
# # only works on some network adapters and requires the ethtool |
629 |
# # package to be installed. |
629 |
# # package to be installed. |
630 |
# if ethtool ${IFACE} | grep -q 'Link detected: no'; then |
630 |
# if ethtool "${IFACE}" | grep -q 'Link detected: no'; then |
631 |
# ewarn "No link on ${IFACE}, aborting configuration" |
631 |
# ewarn "No link on ${IFACE}, aborting configuration" |
632 |
# return 1 |
632 |
# return 1 |
633 |
# fi |
633 |
# fi |
634 |
# |
634 |
# |
|
|
635 |
# |
635 |
# # Remember to return 0 on success |
636 |
# # Remember to return 0 on success |
636 |
# return 0 |
637 |
# return 0 |
637 |
#} |
638 |
#} |
Lines 658-665
Link Here
|
658 |
#} |
659 |
#} |
659 |
|
660 |
|
660 |
#postdown() { |
661 |
#postdown() { |
661 |
# # This function is mostly here for completeness... I haven't |
662 |
# # Enable Wake-On-LAN for the interface |
662 |
# # thought of anything nifty to do with it yet ;-) |
663 |
# # Probably a good idea to set RC_DOWN_INTERFACE="no" in /etc/conf.d/rc |
|
|
664 |
# # as well ;) |
665 |
# ethtool -s "${IFACE}" wol g |
666 |
# |
663 |
# # Return 0 always |
667 |
# # Return 0 always |
664 |
# return 0 |
668 |
# return 0 |
665 |
#} |
669 |
#} |