{"id":60731,"date":"2024-04-12T11:32:58","date_gmt":"2024-04-12T03:32:58","guid":{"rendered":"https:\/\/www.hcl-china.com\/?p=60731"},"modified":"2024-04-12T11:32:58","modified_gmt":"2024-04-12T03:32:58","slug":"%e5%8d%8e%e5%88%9b%e7%bf%bc%e8%81%94%e7%94%b5%e5%ad%90mtk7981%e6%97%a0%e7%ba%bf%e9%a9%b1%e5%8a%a8%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.hcl-china.com\/%e5%8d%8e%e5%88%9b%e7%bf%bc%e8%81%94%e7%94%b5%e5%ad%90mtk7981%e6%97%a0%e7%ba%bf%e9%a9%b1%e5%8a%a8%e8%84%9a%e6%9c%ac\/","title":{"rendered":"\u534e\u521b\u7ffc\u8054\u7535\u5b50MTK7981\u65e0\u7ebf\u9a71\u52a8\u811a\u672c"},"content":{"rendered":"
\u534e\u521b\u7ffc\u8054\u7535\u5b50\u57282024\u5e74\u4e3b\u63a8MTK7981\u65b9\u6848\u7684\u7f51\u7edc\u8bbe\u5907\uff01
\n\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u811a\u672c\uff0c\u7528\u4e8e\u4e0eMTK7981\u65e0\u7ebf\u9a71\u52a8\u8fdb\u884c\u4ea4\u4e92\u3002\u8bf7\u6ce8\u610f\uff0c\u8fd9\u53ea\u662f\u4e00\u4e2a\u57fa\u672c\u7684\u793a\u4f8b\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u6839\u636e\u60a8\u7684\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u4fee\u6539\u3002<\/p>\n
“`bash
\n#!\/bin\/bash<\/p>\n
MTK7981\u65e0\u7ebf\u9a71\u52a8\u76f8\u5173\u53d8\u91cf
\nMTK_DRIVER_NAME=”mtk-wifi”
\nMTK_DRIVER_VERSION=”1.0.0″
\nMTK_DRIVER_PATH=”\/usr\/local\/mtk-wifi”<\/p>\n
\u68c0\u67e5\u662f\u5426\u5df2\u5b89\u88c5MTK7981\u65e0\u7ebf\u9a71\u52a8
\nif [ ! -d “$MTK_DRIVER_PATH” ]; then
\n echo “MTK7981\u65e0\u7ebf\u9a71\u52a8\u672a\u5b89\u88c5\uff0c\u8bf7\u5148\u5b89\u88c5\u9a71\u52a8\u3002”
\n exit 1
\nfi<\/p>\n
\u529f\u80fd\u51fd\u6570
\nfunction install_driver() {
\n echo “\u6b63\u5728\u5b89\u88c5MTK7981\u65e0\u7ebf\u9a71\u52a8…”
\n # \u5728\u8fd9\u91cc\u6267\u884c\u5b89\u88c5\u9a71\u52a8\u7684\u76f8\u5173\u547d\u4ee4
\n # \u4f8b\u5982\uff1asudo make install
\n}<\/p>\n
function uninstall_driver() {
\n echo “\u6b63\u5728\u5378\u8f7dMTK7981\u65e0\u7ebf\u9a71\u52a8…”
\n # \u5728\u8fd9\u91cc\u6267\u884c\u5378\u8f7d\u9a71\u52a8\u7684\u76f8\u5173\u547d\u4ee4
\n # \u4f8b\u5982\uff1asudo make uninstall
\n}<\/p>\n
function restart_driver() {
\n echo “\u6b63\u5728\u91cd\u65b0\u542f\u52a8MTK7981\u65e0\u7ebf\u9a71\u52a8…”
\n # \u5728\u8fd9\u91cc\u6267\u884c\u91cd\u542f\u9a71\u52a8\u7684\u76f8\u5173\u547d\u4ee4
\n # \u4f8b\u5982\uff1asudo modprobe -r mtk_wifi && sudo modprobe mtk_wifi
\n}<\/p>\n
\u6839\u636e\u7528\u6237\u8f93\u5165\u7684\u64cd\u4f5c\u6267\u884c\u76f8\u5e94\u7684\u529f\u80fd\u51fd\u6570
\necho “\u8bf7\u9009\u62e9\u64cd\u4f5c\uff1a”
\necho “1. \u5b89\u88c5MTK7981\u65e0\u7ebf\u9a71\u52a8”
\necho “2. \u5378\u8f7dMTK7981\u65e0\u7ebf\u9a71\u52a8”
\necho “3. \u91cd\u65b0\u542f\u52a8MTK7981\u65e0\u7ebf\u9a71\u52a8”
\nread -p “\u8bf7\u8f93\u5165\u64cd\u4f5c\u7f16\u53f7\uff081\/2\/3\uff09: ” operation<\/p>\n
case $operation in
\n 1)
\n install_driver
\n ;;
\n 2)
\n uninstall_driver
\n ;;
\n 3)
\n restart_driver
\n ;;
\n *)
\n echo “\u65e0\u6548\u7684\u64cd\u4f5c\u7f16\u53f7\uff0c\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u64cd\u4f5c\u7f16\u53f7\u3002”
\n exit 1
\n ;;
\nesac
\n“`<\/p>\n
\u8fd9\u4e2a\u811a\u672c\u63d0\u4f9b\u4e86\u5b89\u88c5\u3001\u5378\u8f7d\u548c\u91cd\u65b0\u542f\u52a8MTK7981\u65e0\u7ebf\u9a71\u52a8\u7684\u529f\u80fd\u3002\u5728\u5b9e\u9645\u4f7f\u7528\u65f6\uff0c\u8bf7\u6839\u636e\u60a8\u7684\u5177\u4f53\u9700\u6c42\u4fee\u6539\u811a\u672c\u4e2d\u7684\u76f8\u5173\u547d\u4ee4\u3002 <\/p>\n","protected":false},"excerpt":{"rendered":"
\u534e\u521b\u7ffc\u8054\u7535\u5b50\u57282024\u5e74\u4e3b\u63a8MTK7981\u65b9\u6848\u7684\u7f51\u7edc\u8bbe\u5907\uff01 \u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u811a\u672c\uff0c\u7528\u4e8e\u4e0eMTK7981\u65e0\u7ebf […]<\/p>\n","protected":false},"author":1,"featured_media":60671,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[213],"tags":[302],"_links":{"self":[{"href":"https:\/\/www.hcl-china.com\/wp-json\/wp\/v2\/posts\/60731"}],"collection":[{"href":"https:\/\/www.hcl-china.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hcl-china.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hcl-china.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hcl-china.com\/wp-json\/wp\/v2\/comments?post=60731"}],"version-history":[{"count":2,"href":"https:\/\/www.hcl-china.com\/wp-json\/wp\/v2\/posts\/60731\/revisions"}],"predecessor-version":[{"id":60733,"href":"https:\/\/www.hcl-china.com\/wp-json\/wp\/v2\/posts\/60731\/revisions\/60733"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hcl-china.com\/wp-json\/wp\/v2\/media\/60671"}],"wp:attachment":[{"href":"https:\/\/www.hcl-china.com\/wp-json\/wp\/v2\/media?parent=60731"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hcl-china.com\/wp-json\/wp\/v2\/categories?post=60731"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hcl-china.com\/wp-json\/wp\/v2\/tags?post=60731"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}