前段是检测系统已经运行了8000天以上,就显示提示【System is up over 8000 days; this is a sign of a corrupt /etc/utmp file.】,结束脚本,并且返回值为1.后一段是前一段测试如果不大于8000天(返回值等于0时),检测当前进程的运行级别,如果结果为空(result的值为空),就显示提示信...
显示全部前段是检测系统已经运行了8000天以上,就显示提示【System is up over 8000 days; this is a sign of a corrupt /etc/utmp file.】,结束脚本,并且返回值为1.
后一段是前一段测试如果不大于8000天(返回值等于0时),检测当前进程的运行级别,如果结果为空(result的值为空),就显示提示信息【Unable to determine run-level with the who -r command.】【echo "This is a sign of a corrupt /etc/utmp file.】,结束脚本,并且返回值为1.
收起