Op 14 jan. 2012, om 16:54 heeft Eric Bénard het volgende geschreven:
> Le Sat, 14 Jan 2012 16:10:55 +0100,
> Koen Kooi <[email protected]> a écrit :
>>> + # Install defaults
>>> + install -d ${D}${sysconfdir}
>>> + echo ${DEFAULT_TIMEZONE} > ${D}${sysconfdir}/timezone
>>> + cp -pP ${S}/${datadir}/zoneinfo/${DEFAULT_TIMEZONE}
>>> ${D}${sysconfdir}/localtime
>>
>> Shouldn't that be an 'ln -sf' instead of a 'cp'?
>>
> that would make a link from ${D} to ${S}
How about this one:
if [ -e ${S}/${datadir}/zoneinfo/${DEFAULT_TIMEZONE} ] ; then
ln -sf ${datadir}/zoneinfo/${DEFAULT_TIMEZONE}
${D}${sysconfdir}/localtime
else
echo "Timezone ${DEFAULT_TIMEZONE} not found, exiting"
exit 1
fi
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core