Bug 4258 - broken pciscan invocation
Summary: broken pciscan invocation
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: hotplug (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Anton Farygin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-29 17:57 MSD by Sergey Vlasov
Modified: 2005-07-13 15:46 MSD (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Vlasov 2004-05-29 17:57:38 MSD
PCI_SLOT=`echo "$PCI_SLOT_NAME"|sed -s "s,^0*:,,"`
        debug_mesg "pciscan is scanning modules for $PCI_SLOT ..."
    DRIVERS=`pciscan -r -s $PCISLOT`

Во-первых, тут опечатка в имени переменной (s/PCISLOT/PCI_SLOT/).  Во-вторых,
вызов sed тут не нужен (на самом деле после такой замены pciscan ничего не
находит) - можно просто передавать $PCI_SLOT_NAME.
Comment 1 Anton Farygin 2004-05-31 10:45:59 MSD
PCI_SLOT_NAME имеет формат xxxx:xx:xx.x, а pciscan нужно передавать xx:xx.x.
Для этого sed и необходим.

Comment 2 Anton Farygin 2004-05-31 10:53:09 MSD
Исправлено в следующей сборке (2004_03_29-alt3)