Re: Please make discover2 udebs available for testing
- To: Jeff Licquia <licquia@progeny.com>
- Cc: Progeny Debian Packaging Team <debian-packages@progeny.com>, debian-boot <debian-boot@lists.debian.org>
- Subject: Re: Please make discover2 udebs available for testing
- From: Petter Reinholdtsen <pere@hungry.com>
- Date: 01 Jun 2003 11:27:58 +0200
- Message-id: <[🔎] 2flsmqu5eqp.fsf@saruman.uio.no>
- In-reply-to: <[🔎] 2flwug65h6o.fsf@saruman.uio.no>
- References: <2fln0iha90w.fsf_-_@saruman.uio.no> <20030429174314.GW27083@morimoto.progeny.com> <2fly91rpwig.fsf@saruman.uio.no> <2flznm3oies.fsf@saruman.uio.no> <20030505151020.GF27083@morimoto.progeny.com> <20030505171304.A24393@saruman.uio.no> <20030505171331.GA705@morimoto.progeny.com> <2flsmrtax58.fsf@saruman.uio.no> <2flwugqfzhk.fsf_-_@saruman.uio.no> <20030516214116.GO28269@morimoto.progeny.com> <20030517000330.A9012@saruman.uio.no> <1053126745.910.73.camel@laptop2.internal.licquia.org> <2fl4r3tfkpn.fsf_-_@saruman.uio.no> <1053370171.4611.29.camel@laptop2.internal.licquia.org> <1053384321.4619.33.camel@laptop2.internal.licquia.org> <2flof1ym7oy.fsf@saruman.uio.no> <2fliss6m5oq.fsf@saruman.uio.no> <1053449429.929.53.camel@laptop2.internal.licquia.org> <2fliss5tq6k.fsf@saruman.uio.no> <1053459434.929.60.camel@laptop2.internal.licquia.org> <2flk7cgvlfy.fsf@saruman.uio.no> <1054314929.900.6.camel@laptop2.internal.licquia.org> <[🔎] 2fl65nq6y8g.fsf@saruman.uio.no> <[🔎] 2flwug65h6o.fsf@saruman.uio.no>
[Petter Reinholdtsen]
> developer:~# discover --data-path=linux/module/name \
> --data-version=2.4 -t -d all -e ata -e pci -e pcmcia -e scsi display
> --data-version has no meaning without --data-path.
I found the problem. Removing '-t' got rid of this error. But I get
two empty lines instead of any kernel module info. I would expect one
empty line, as the --type-summary run only listed one card.
On an unrelated note. I believe we really _need_ the --format option
from discover1. The example from xfree86 postinst uses the 'paste'
function, but it is missing in busybox. The current code in hw-detect
look like this:
discover_hw () {
# Ugh, Discover 1.x didn't exit with nonzero status if given an
# unrecongized option!
DISCOVER_TEST=$(discover --version 2> /dev/null)
if expr "$DISCOVER_TEST" : 'discover 2.*' > /dev/null 2>&1; then
# Discover 2.x
# XXX: This is copied from xfree86, and do not work yet
log "Using discover2 do not work yet."
dpath=linux/module/name
dver=`uname -r|cut -d. -f1,2` # Kernel version (ie 2.4)
dflags="-d all -e ata -e pci -e pcmcia -e scsi display"
# Use fixed name temp files, as 'tempfile' is missing from busybox
VENDOR_MODEL_FILE=/tmp/discover-vendor.txt
DRIVER_FILE=/tmp/discover-driver.txt
discover --type-summary $dflags > $VENDOR_MODEL_FILE
discover --data-path=$dpath --data-version=$dver $dflags > $DRIVER_FILE
paste $VENDOR_MODEL_FILE $DRIVER_FILE
rm -f $VENDOR_MODEL_FILE $DRIVER_FILE
else
# must be Discover 1.x
/sbin/discover --format="%m\t%V %M\n" \
--disable-all --enable=pci,ide,scsi,pcmcia scsi cdrom ethernet |
sed 's/ $//'
fi
}
I want the code to handle v2 to be as short and easy to handle as the
v1 code.
Reply to: