#!/bin/bash #%rlevels: 7:s #%start: 50 #%stop: #deps #%needs: #%before: #%after: source /etc/sysconfig/rc source $rc_functions echo -e ${COLOREDSTAR}"Removing /var/run/* and /var/lock/* ..." for i in /var/run/* do if [ -d ${i} ] then rm -rf ${i}/* else rm -f ${i} fi done for i in /var/lock/* do if [ -d ${i} ] then rm -rf ${i}/* else rm -f ${i} fi done evaluate_retval echo -e ${COLOREDSTAR}"Creating new /var/run/utmp ..." touch /var/run/utmp && chmod 644 /var/run/utmp evaluate_retval echo -e ${COLOREDSTAR}"Removing possible /etc/nologin /fastboot and /forcefsck ..." rm -f /etc/nologin /fastboot /forcefsck evaluate_retval update_svcstatus $1 splash svc_started "$(basename $0)" 0