[arch-projects] [PATCH 01/10] status: synchronise the status message

Seblu seblu at seblu.net
Thu Mar 31 20:47:39 EDT 2011


On Wed, Mar 30, 2011 at 8:01 PM, Tom Gundersen <teg at jklm.no> wrote:
> This trivial patch moves the start of the LOCALE status message to
> before the first command. This should not make a difference, as all the
> commands should be instantaneos, but might be helpful in case of a bug.
>
> Signed-off-by: Tom Gundersen <teg at jklm.no>
> ---
>  rc.sysinit |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/rc.sysinit b/rc.sysinit
> index 9d7c250..8fa5b30 100755
> --- a/rc.sysinit
> +++ b/rc.sysinit
> @@ -341,12 +341,12 @@ fi
>
>  status "Updating Module Dependencies" /sbin/depmod -A
>
> +[[ $LOCALE ]] || LOCALE="en_US"
> +stat_busy "Setting Locale: $LOCALE"
this can be done more elegantly in one line

stat_busy "Setting Locale: ${LOCALE:=en_US}"

>  # Flush old locale settings
>  : >| /etc/profile.d/locale.sh
>  /bin/chmod 755 /etc/profile.d/locale.sh
>  # Set user defined locale
> -[[ $LOCALE ]] || LOCALE="en_US"
> -stat_busy "Setting Locale: $LOCALE"
>  echo "export LANG=$LOCALE" >>/etc/profile.d/locale.sh
>  stat_done
>
> --
> 1.7.4.2
>
>



-- 
Sébastien Luttringer
www.seblu.net


More information about the arch-projects mailing list