diff options
author | hschang <chang@dev3> | 2013-01-23 07:59:19 (GMT) |
---|---|---|
committer | hschang <chang@dev3> | 2013-01-23 07:59:19 (GMT) |
commit | 70513fb5523fe7a186c9ad4a367efdf6b23b928d (patch) | |
tree | 517e497d59afc8d7d6ffb2632a0e3de042a215f3 | |
parent | 471f056b17095e73dec2a696df56085f51f3e010 (diff) |
ethtool : add patch.
-rw-r--r-- | meta-openvuplus/recipes-extended/ethtool/ethtool/vuplus.patch | 32 | ||||
-rw-r--r-- | meta-openvuplus/recipes-extended/ethtool/ethtool_2.6.36.bbappend | 10 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta-openvuplus/recipes-extended/ethtool/ethtool/vuplus.patch b/meta-openvuplus/recipes-extended/ethtool/ethtool/vuplus.patch new file mode 100644 index 0000000..a5fc603 --- /dev/null +++ b/meta-openvuplus/recipes-extended/ethtool/ethtool/vuplus.patch @@ -0,0 +1,32 @@ +Index: ethtool-4/ethtool.c +=================================================================== +--- ethtool-4/ethtool.c (revision 3) ++++ ethtool-4/ethtool.c (working copy) +@@ -1578,6 +1578,27 @@ + } else if (errno != EOPNOTSUPP) { + perror("Cannot get link status"); + } ++#if 1 /* ikseong - check running flags */ ++ else ++ { ++ if(ioctl(fd, SIOCGIFFLAGS, ifr) < 0) ++ { ++ fprintf(stdout,"SIOCGIFFLAGS error \n"); ++ } ++ else ++ { ++ if((ifr->ifr_flags & IFF_RUNNING)) ++ { ++ fprintf(stdout, " Link detected: yes\n"); ++ } ++ else ++ { ++ fprintf(stdout, " Link detected: no\n"); ++ } ++ allfail=0; ++ } ++ } ++#endif + + if (allfail) { + fprintf(stdout, "No data available\n"); diff --git a/meta-openvuplus/recipes-extended/ethtool/ethtool_2.6.36.bbappend b/meta-openvuplus/recipes-extended/ethtool/ethtool_2.6.36.bbappend new file mode 100644 index 0000000..69823b3 --- /dev/null +++ b/meta-openvuplus/recipes-extended/ethtool/ethtool_2.6.36.bbappend @@ -0,0 +1,10 @@ +PRINC = "1" + +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI_append = " file://vuplus.patch" + +SRC_URI[md5sum] = "3b2322695e9ee7bf447ebcdb85f93e83" +SRC_URI[sha256sum] = "639622180fe48dc7bb117ffbf263395d7ae47aac9819b8d9f83ff053ecf17bdd" + +inherit autotools |