{"id":704,"date":"2012-05-21T02:20:43","date_gmt":"2012-05-21T02:20:43","guid":{"rendered":"http:\/\/kraftek.com\/blog\/?p=704"},"modified":"2021-06-14T21:23:16","modified_gmt":"2021-06-14T21:23:16","slug":"get-nic-kernel-module","status":"publish","type":"post","link":"\/blog\/index.php\/get-nic-kernel-module\/","title":{"rendered":"Get nic kernel module"},"content":{"rendered":"\n<p>if you want to know what kernel module your network interfaces use, you can use &#8220;getdriver.ksh&#8221;:<\/p>\n\n\n\n<p><code>#!\/bin\/bash<br>ifconfig -a | egrep -i 'wlan|eth' | egrep -v 'vbox|mon'| awk '{ print $1 }'|while read i;do<br>echo -n \"$i : \"<br>readlink \/sys\/class\/net\/$i\/device\/driver| awk -F'\/' '{ print $NF }'<br>done<\/code><\/p>\n\n\n\n<p>the output is something like this:<br>root@kraftek:~# \/scripts\/getdriver<br>eth0 : atl1c<br>wlan0 : carl9170<br>wlan1 : brcmsmac<\/p>\n","protected":false},"excerpt":{"rendered":"<p>if you want to know what kernel module your network interfaces use, you can use &#8220;getdriver.ksh&#8221;: #!\/bin\/bashifconfig -a | egrep -i &#8216;wlan|eth&#8217; | egrep -v &#8216;vbox|mon&#8217;| awk &#8216;{ print $1 }&#8217;|while read i;doecho -n &#8220;$i : &#8220;readlink \/sys\/class\/net\/$i\/device\/driver| awk -F&#8217;\/&#8217; &#8216;{ print $NF }&#8217;done the output is something like this:root@kraftek:~# \/scripts\/getdrivereth0 : atl1cwlan0 : carl9170wlan1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-704","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=704"}],"version-history":[{"count":3,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/704\/revisions"}],"predecessor-version":[{"id":1335,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/704\/revisions\/1335"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=704"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}