Skip to Content

MPD

mpd.conf 設置 set iface up-script script 注意事項

改採用 MPD5 版本來進行 ADSL 撥接後,莫名的原先的 set iface up-script script 選項居然無效了,祭拜 Google 大神後,發現設置並無任何手誤,但撥接完成後就是不執行指定的腳本 生氣了

後來想到改將原先背景執行模式改為前景模式來執行後,終於找到原因了。
原來是放置的位置不對,所以造成上下文的設置毫無關聯,所以被 mpd 給省略掉了,真是有夠機車 Thumb Down

startup:
# configure mpd users
set user username1 userpassword1 admin
set user username2 userpassword2 user
# configure the console
set console self 127.0.0.1 5005
set console open
# configure the web server
set web self 0.0.0.0 5006
set web open

default:
load pppoe_client

訂閱文章