On Fri, Sep 24, 2010 at 12:05 PM, Serge van Ginderachter
<[email protected]> wrote:
> On 24 September 2010 11:49, Guido Trotter <[email protected]> wrote:
>>> +if [ -r confdata/timezone ]
>>> +then   cp confdata/timezone $TARGET/etc/
>>> +else   cp /etc/timezone $TARGET/etc/
>>> +fi
>>>
>>
>> Will the file actually exist? "timezone" is not actually guaranteed to
>> be executed with the hooks dir as its current directory
>
> Good point. Whilst it did on my setup, run-parts(8) isn't clear on that.
>
> AFAICS the CUSTOMIZE_DIR variable isn't available either to those
> scripts, which would leave me to hardcode that path. I'm not sure if
> there's a better way.
>

In the other script you use "dirname $0", would that work here as well?

Thanks,

Guido

Reply via email to