關於 rc.local - Linux

By Noah
at 2015-03-03T17:04
at 2015-03-03T17:04
Table of Contents
板友午安
我在 ubuntu /etc/rc.local 裡面加了
sh /3g_connect.sh
sh updateTime.sh
exit 0
3g_connect.sh 裡面的指令就只有 pppd call wcdma &
updateTime.sh 裡面只有 ntpdate "time server" &
我在開機登入帳密時,馬上登進去 打 ifconfig 就看到 ppp0 介面,也就是已經連線了
但我要在等2~3分鐘,date 才會更新。請問這怎麼回事阿.... 我如果再連線狀態打上
sh updateTime.sh 它也只要3秒鐘,如果都放在rc.local,第二個 script 卻3分鐘之後
才更新時間 why? 謝謝。
--
我在 ubuntu /etc/rc.local 裡面加了
sh /3g_connect.sh
sh updateTime.sh
exit 0
3g_connect.sh 裡面的指令就只有 pppd call wcdma &
updateTime.sh 裡面只有 ntpdate "time server" &
我在開機登入帳密時,馬上登進去 打 ifconfig 就看到 ppp0 介面,也就是已經連線了
但我要在等2~3分鐘,date 才會更新。請問這怎麼回事阿.... 我如果再連線狀態打上
sh updateTime.sh 它也只要3秒鐘,如果都放在rc.local,第二個 script 卻3分鐘之後
才更新時間 why? 謝謝。
--
Tags:
Linux
All Comments

By Caitlin
at 2015-03-05T23:29
at 2015-03-05T23:29

By Dorothy
at 2015-03-07T09:11
at 2015-03-07T09:11

By Callum
at 2015-03-10T18:51
at 2015-03-10T18:51

By Jacky
at 2015-03-14T09:35
at 2015-03-14T09:35

By Rebecca
at 2015-03-17T18:51
at 2015-03-17T18:51

By Donna
at 2015-03-20T02:48
at 2015-03-20T02:48

By Jacky
at 2015-03-20T11:53
at 2015-03-20T11:53

By Lucy
at 2015-03-22T15:37
at 2015-03-22T15:37

By Xanthe
at 2015-03-25T12:29
at 2015-03-25T12:29

By Quanna
at 2015-03-29T00:30
at 2015-03-29T00:30
Related Posts
藍牙 bluetooth 配對問題

By Jacob
at 2015-03-03T14:38
at 2015-03-03T14:38
龍門少尉的窩倒了 ?

By Kumar
at 2015-03-03T12:42
at 2015-03-03T12:42
可以直接換電腦不需要重灌OS嗎?

By Heather
at 2015-03-02T23:53
at 2015-03-02T23:53
如何從終端機直接複製有顏色的文字

By Bethany
at 2015-03-02T23:25
at 2015-03-02T23:25
比較兩資料夾的binary file

By Oscar
at 2015-03-02T22:25
at 2015-03-02T22:25