#!/sbin/runscript
# Copyright (c) by Gentoo Lover <ljy520zhiyong@163.com>
#
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
}
Gentoo下Mentohust开机自启动脚本
最新推荐文章于 2021-05-14 04:33:44 发布