[arch-projects] [INITSCRIPTS][PATCH] rc cleaning run rc.d scripts

Tom Gundersen teg at jklm.no
Mon Apr 25 18:59:21 EDT 2011


On Mon, Apr 25, 2011 at 12:03 AM, Sebastien Luttringer <seblu at seblu.net> wrote:
> diff --git a/rc b/rc
> index 1e64119..9889d1e 100755
> --- a/rc
> +++ b/rc
> @@ -43,8 +43,14 @@ case $1 in
>        *)
>                action=$1
>                shift
> +               # set same environment variables as init
> +               runlevel=$(/sbin/runlevel)
> +               ENV="PATH='/bin:/usr/bin:/sbin:/usr/sbin'"

I believe we already overwrite PATH in rc.sysinit, so I guess the two
should match?

-t


More information about the arch-projects mailing list