[arch-projects] [PATCH 4/7] rc.sysinit: condense calls to rm

Tom Gundersen teg at jklm.no
Sat Mar 26 18:15:30 EDT 2011


On Saturday 26 March 2011 16:32:00 Dave Reisner wrote:
> Signed-off-by: Dave Reisner <d at falconindy.com>
> ---
>  rc.sysinit |    5 +----
>  1 files changed, 1 insertions(+), 4 deletions(-)
> 
> diff --git a/rc.sysinit b/rc.sysinit
> index cd74db4..3d0eb02 100755
> --- a/rc.sysinit
> +++ b/rc.sysinit
> @@ -334,11 +334,8 @@ if [[ -f $RANDOM_SEED ]]; then
>  fi
> 
>  stat_busy "Removing Leftover Files"
> -/bin/rm -f /etc/nologin &>/dev/null
> -/bin/rm -f /etc/shutdownpid &>/dev/null
> -/bin/rm -f /var/lock/* &>/dev/null
> +/bin/rm -f /etc/{nologin,shutdownpid} /var/lock/* /forcefsck &>/dev/null
>  /bin/rm -rf /tmp/* /tmp/.* &>/dev/null
> -/bin/rm -f /forcefsck &>/dev/null
>  [[ -d /var/run ]] && /usr/bin/find /var/run/ \! -type d -delete
> 
>  : >| /var/run/utmp
> 
>  /bin/chmod 0664 /var/run/utmp

Looks fine to me.

-t


More information about the arch-projects mailing list