新聞中心

        EEPW首頁 > 嵌入式系統 > 設計應用 > linux下Intel 3945ABG 安裝無線網卡驅動

        linux下Intel 3945ABG 安裝無線網卡驅動

        作者: 時間:2007-07-25 來源:網絡 收藏
        1. 添加 atrpms 源
        # gedit /etc/yum.repos.d/atrpms.repo
        添加以下內容:
        代碼:

        [atrpms]
        Core $releasever - $basearch - ATrpms
        baseurl=http://dl.atrpms.net/fc$releasever-$basearch/atrpms/stable
        gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
        enabled=0
        gpgcheck=1

        安裝 key:
        # rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms

        2. 安裝
        # yum --enablerepo=atrpms install ipw3945-kmdl-`uname -r` ieee80211-kmdl-`uname -r`

        3. 打開
        腳本:
        代碼:

        #!/bin/bash
        #
        # ipw3945d Load/Unload Intel ipw3945 daemon
        #
        # chkconfig: 2345 09 90
        # description: Load / Unload Intel ipw3945 daemon
        #
        ### BEGIN INIT INFO
        # Provides: ipw3945d
        ### END INIT INFO

        # Source function library.
        . /etc/init.d/functions

        if [ ! -f /etc/sysconfig/network ]; then
        exit 0
        fi

        case $1 in
        start)
        echo -n Starting ipw3945d:
        /sbin/ipw3945d > /dev/null 2>1
        echo
        ;;
        stop)
        echo -n Stopping ipw3945d:
        killproc ipw3945d
        echo
        ;;
        status)
        status ipw3945d
        ;;
        restart)
        cd $CWD
        $0 stop
        $0 start
        ;;
        *)
        echo $Usage: $0 {start|stop|restart|status}
        exit 1
        esac

        exit 0

        把上面的代碼保存為 ipw3945d。
        # mv ipw3945d /etc/init.d
        # chmod +x /etc/init.d/ipw3945d
        # chkconfig --level 5 NetworkManager on
        # chkconfig --level 5 NetworkManagerDispatcher on
        # chkconfig --level 5 ipw3945d on
        # service NetworkManager start
        # service NetworkManagerDispatcher start
        # service ipw3945d start

        4. 測試
        # ifconfig
        # iwlist scanning

        完成
        linux操作系統文章專題:linux操作系統詳解(linux不再難懂)

        linux相關文章:linux教程




        評論


        相關推薦

        技術專區

        關閉
        主站蜘蛛池模板: 馆陶县| 玉山县| 青龙| 湖南省| 新田县| 平遥县| 格尔木市| 大庆市| 西峡县| 酉阳| 乡宁县| 秦皇岛市| 化州市| 滨州市| 遂溪县| 绵竹市| 綦江县| 奉化市| 丰镇市| 固原市| 三门峡市| 如皋市| 伊宁市| 上栗县| 吉水县| 东乡| 惠安县| 固安县| 南雄市| 廊坊市| 大余县| 措美县| 朝阳市| 郧西县| 通江县| 儋州市| 金塔县| 阿勒泰市| 和平区| 长治市| 呼伦贝尔市|