Fedora 如何在開機時執行一個指令 ? - Linux

Table of Contents

我用的是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吧?

想請問要如何做才能達到我要的結果呢?

--

All Comments

Tracy avatarTracy2008-12-05
how abot /etc/rc.d/rc.local ?
Ophelia avatarOphelia2008-12-07
原 po 好像沒搞清楚 rc 跟 bashrc 的功能。