--- trunk/busybox-initscripts/rc/cleanfs 2008/06/02 22:14:35 724 +++ trunk/busybox-initscripts/rc/cleanfs 2010/12/15 17:44:36 1168 @@ -1,5 +1,5 @@ #!/bin/sh -# $Header: /home/cvsd/magellan-cvs/magellan-src/busybox-initscripts/rc/cleanfs,v 1.1 2008-06-02 22:14:35 niro Exp $ +# $Header: /home/cvsd/magellan-cvs/magellan-src/busybox-initscripts/rc/cleanfs,v 1.2 2008-06-10 22:23:30 niro Exp $ #%rlevels: 7:s #%start: 50 @@ -10,12 +10,12 @@ #%before: #%after: -source /etc/sysconfig/rc -source $rc_functions +source /etc/conf.d/rc +source ${rc_functions} for dir in /tmp /var/run /var/lock do - echo -e ${COLOREDSTAR}"Removing tmp files in ${dir}/* ..." + rc_print "Removing tmp files in ${dir}/* ..." for file in $(find ${dir} -type f) do [[ $(basename ${file}) = .keep ]] && continue @@ -24,15 +24,15 @@ evaluate_retval done -echo -e ${COLOREDSTAR}"Creating new /var/run/utmp ..." +rc_print "Creating new /var/run/utmp ..." touch /var/run/utmp && chmod 644 /var/run/utmp evaluate_retval -echo -e ${COLOREDSTAR}"Creating new /var/run/wtmp ..." +rc_print "Creating new /var/run/wtmp ..." touch /var/log/wtmp && chmod 644 /var/log/wtmp evaluate_retval -echo -e ${COLOREDSTAR}"Removing possible /etc/nologin /fastboot and /forcefsck ..." +rc_print "Removing possible /etc/nologin /fastboot and /forcefsck ..." rm -f /etc/nologin /fastboot /forcefsck evaluate_retval