Gentoo下Mentohust開機自啓動腳本

#!/sbin/runscript
# Copyright (c) by Gentoo Lover <[email protected]>
#

description="Set the mentohust level for a cleaner boot"

LOG_FILE="/tmp/mentohust.log";

depend()
{
        need net;
        after *;
}

start()
{
        if [ ! -e ${LOG_FILE} ]; then
                /usr/bin/mentohust;
                echo  "Starting the mentohust...";
        fi
}

stop()
{
        if [ -e "/tmp/mentohust.log" ]; then
                /usr/bin/mentohust -k;
                echo "Stopping the mentohust...";
                rm -rf ${LOG_FILE};
        fi
}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章