#note: DISTRO_BINARY_COMPAT and DISTRO_FILE_PREFIX are visible here, exported in 2createpackages.
#140117 xARCHDIR, ARCHDIR and DISTRO_ARCHDIR_SYMLINKS exported in 2createpackages. 
#140117 note, 2createpackages may move /lib, /usr/lib, /usr/bin in template to ARCHDIR subdir.

if [ "$xARCHDIR" ];then #140117
 [ -e bin/${ARCHDIR}/dialog ] && [ ! -e usr/bin/${ARCHDIR}/dialog ] && ln -s /bin/${ARCHDIR}/dialog usr/bin/${ARCHDIR}/dialog
fi
[ -e bin/dialog ] && [ ! -e usr/bin/dialog ] && ln -s /bin/dialog usr/bin/dialog
