[Buildroot] [PATCH] sysklogd: Check for hanging link file also when installing the conf file.

Ryan Raasch ryan.raasch at gmail.com
Mon Nov 7 15:26:43 UTC 2011


# ln hello
# if [ ! -e hello ] ; then echo "I don't exist"; fi
I don't exist

I thought -e worked also.

/Ryan

On 7 November 2011 16:24, Ryan Raasch <ryan.raasch at gmail.com> wrote:
> I tried that also. It returns false also on a dangling link.
>
> /Ryan
>
> On 7 November 2011 16:21, Thomas Petazzoni
> <thomas.petazzoni at free-electrons.com> wrote:
>> Le Mon, 7 Nov 2011 15:40:50 +0100,
>> Ryan Raasch <ryan.raasch at gmail.com> a écrit :
>>
>>> -     if [ ! -f $(TARGET_DIR)/etc/syslog.conf ]; then \
>>> +     if [ ! -f $(TARGET_DIR)/etc/syslog.conf ] && [ ! -h $(TARGET_DIR)/etc/syslog.conf ] ; then \
>>
>> Wouldn't
>>
>>> -     if [ ! -e $(TARGET_DIR)/etc/syslog.conf ]; then \
>>
>> Be better ?
>>
>> Thomas
>> --
>> Thomas Petazzoni, Free Electrons
>> Kernel, drivers, real-time and embedded Linux
>> development, consulting, training and support.
>> http://free-electrons.com
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
>


More information about the buildroot mailing list