#!/bin/sh # $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 #%stop: #deps #%needs: #%before: #%after: source /etc/conf.d/rc source ${rc_functions} case "$1" in start) rc_print "Creating new /run/utmp ..." touch /run/utmp && chmod 644 /run/utmp evaluate_retval rc_print "Creating new /var/log/wtmp ..." touch /var/log/wtmp && chmod 644 /var/log/wtmp evaluate_retval rc_print "Removing possible /etc/nologin /fastboot and /forcefsck ..." rm -f /etc/nologin /fastboot /forcefsck evaluate_retval update_svcstatus $1 splash svc_started "$(basename $0)" 0 ;; *) rc_echo "Usage: $0 {start}" exit 1 ;; esac