FreeBSD Bugzilla – Attachment 210806 Details for
Bug 229347
sysutils/bsdstats: Device reporting broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for changes to pciconf -l in FreeBSD 13-CURRENT
bsdstats.svn.diff (text/plain), 1.78 KB, created by
scrappy
on 2020-01-17 04:24:14 UTC
(
hide
)
Description:
Fix for changes to pciconf -l in FreeBSD 13-CURRENT
Filename:
MIME Type:
Creator:
scrappy
Created:
2020-01-17 04:24:14 UTC
Size:
1.78 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 521979) >+++ Makefile (working copy) >@@ -2,8 +2,7 @@ > # $FreeBSD$ > > PORTNAME= bsdstats >-PORTVERSION= 6.0 >-PORTREVISION= 2 >+PORTVERSION= 6.1 > CATEGORIES= sysutils > DISTFILES= > >Index: files/300.statistics.in >=================================================================== >--- files/300.statistics.in (revision 521979) >+++ files/300.statistics.in (working copy) >@@ -42,7 +42,7 @@ > UMASK=/usr/bin/umask > OPENSSL=/usr/bin/openssl > CHOWN=/usr/sbin/chown >- NC=/usr/local/bin/netcat >+ NC=/usr/bin/nc > ;; > NetBSD) > UMASK=umask >@@ -354,13 +354,21 @@ > FreeBSD|DragonFly) > local query_string="" > local line >- for line in $(${PCICONF} -l); do >+ while read line >+ do > local DRIVER=$(echo "${line}" | ${AWK} -F\@ '{print $1}') >- local DEV=$(echo "${line}" | ${AWK} '{print $4}' | ${CUT} -c8-15) >+ if [ "0`echo "${line}" | awk '{print $5}' | awk -F= '{print $1}'`" = "0vendor" ]; then >+ local VENDOR=$(echo "${line}" | ${AWK} '{print $5}' | ${CUT} -c10-15) >+ local DEVICE=$(echo "${line}" | ${AWK} '{print $6}' | ${CUT} -c10-15) >+ local DEV=$(echo "${DEVICE}${VENDOR}") >+ else >+ local DEV=$(echo "${line}" | ${AWK} '{print $4}' | ${CUT} -c8-15) >+ fi > local CLASS=$(echo "${line}" | ${AWK} '{print $2}' | ${CUT} -c9-14) > query_string=$query_string`echo \&dev[]=${DRIVER}:${DEV}:${CLASS}` >- done >- >+ done << EOT >+$(${PCICONF} -l) >+EOT > echo_begin "Posting device statistics to ${checkin_server_description}" > do_http_request_check_status "GET" "/scripts/report_devices.php?token=${TOKEN}&key=${KEY}$query_string" \ > "" "" "system devices submission"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 229347
:
206262
|
207059
|
210761
|
210806
|
211228
|
212035