作者realmojo (( ̄▽ ̄)╭∩╮)
看板Linux
標題[問題] Fedora 如何在開機時執行一個指令 ?
時間Sun Nov 30 22:33:30 2008
我用的是Fedora 10不知道為何,我的X windows下抓不到eth0
只得用ifup eth0
我想把這行自動在開機時執行,照鳥哥的書說法,
我在 /etc/profile 中加入 ifup eth0 可是沒作用
換在 /etc/inputrc 加入 ifup eth0 下次開機,按i這個鍵竟然會變成嗶聲,
i鍵會變得沒有作用,不知道是何原因
若是在 ~/.bash_profile 或 ~/.bash_login加入 ifup eth0
則會顯示找不到該device,代表只有root才能執行 ifup eth0吧?
想請問要如何做才能達到我要的結果呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.99.0.10
※ 編輯: realmojo 來自: 122.99.0.10 (11/30 22:42)
推 WolfLord:how abot /etc/rc.d/rc.local ? 11/30 23:14
推 antontw:原 po 好像沒搞清楚 rc 跟 bashrc 的功能。 12/01 09:44