目錄
將開機運行腳本寫入
/etc/rc.local
將關機前運行腳本寫入
/etc/rc.shutdown.local
測試
/etc/rc.d/local start /etc/rc.d/local stop
修改 /etc/rc.conf 生效
sh /etc/rc