head	1.1;
branch	1.1.1;
access;
symbols
	import-20090318:1.1.1.1
	import-20081205:1.1.1.1
	rel-8-1-2-sv:1.1.1.1
	import-20080404:1.1.1.1
	freescale:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2008.04.04.10.52.00;	author seh;	state Exp;
branches
	1.1.1.1;
next	;
commitid	GVikqE6sLnKPsMXs;

1.1.1.1
date	2008.04.04.10.52.00;	author seh;	state Exp;
branches;
next	;
commitid	GVikqE6sLnKPsMXs;


desc
@@


1.1
log
@Initial revision
@
text
@#!/bin/sh

# Copyright 2006 Freescale Semiconductor, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

if [ -n "$1" -a "$1" != start ]; then
    exit 0
fi

# clean up /var/run and /var/lock
f_rec_rem() {
    ls -1 |
    while read f; do
        test -f "$f" && rm -f "$f"
        test -d "$f" && { cd "$f" ; f_rec_rem ; }
    done
}

# remove stale files from /var/run
cd /var/run && f_rec_rem

# remove stale files from /var/lock
cd /var/lock && f_rec_rem

exit 0
@


1.1.1.1
log
@Import from fsl 20080404
@
text
@@
