/usr/sbin/update-pciids: line 18: [: : integer expression expected
update-pciids: cannot find curl, wget or lynx
I do have wget installed, and got the script to run by commenting some
script-lines as follows:
...
# if pci.ids is read-only (because the filesystem is read-only),
# then just skip this whole process.
if ! touch ${DEST} >/dev/null 2>&1 ; then
${quiet} || echo "${DEST} is read-only, exiting." 1>&2
exit 1
fi
#GET RID OF LINE 18 ERROR...
#if [ "$PCI_COMPRESSED_IDS" -eq 1 ] ; then
# DECOMP="cat"
# SRC="$SRC.gz"
# GREP=zgrep
#elif which bzip2 >/dev/null 2>&1 ; then
# DECOMP="bzip2 -d"
# SRC="$SRC.bz2"
#elif which gzip >/dev/null 2>&1 ; then
# DECOMP="gzip -d"
# SRC="$SRC.gz"
#else
DECOMP="cat"
#fi
#WGET IS THERE _ JUST USE IT..
#if which curl >/dev/null 2>&1 ; then
# DL="curl -o $DEST.new $SRC"
# ${quiet} && DL="$DL -s -S"
#elif which wget >/dev/null 2>&1 ; then
DL="wget --no-timestamping -O $DEST.new $SRC"
${quiet} && DL="$DL -q"
#elif which lynx >/dev/null 2>&1 ; then
# DL="eval lynx -source $SRC >$DEST.new"
#else
# echo >&2 "update-pciids: cannot find curl, wget or lynx"
# exit 1
#fi
if ! $DL ; then
echo >&2 "update-pciids: download failed"
rm -f $DEST.new
exit 1
fi
...
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page