Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 205094
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 207371
Assigned To: Gentoo ALSA team <alsa-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Matthijs Kooijman <matthijs@stdin.nl>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 205094 depends on: Show dependency tree
Bug 205094 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-01-09 17:17 0000
During shutdown, the alsasound initscript checks what the current kernel
version is, as follows:

              /sbin/rmmod --version | grep -q module-init-tools \
                        && ver="26" || ver="24"

This works fine in general, but does not when using busybox to provide the
rmmod command.

I would say that using the above to detect the difference between 2.6 and 2.4
is not very portable, and using something like uname -r should work better.
However, I suspect that in reality, the script doesn't really check what kernel
version is running, but if it uses the new module-init-tools module unloading
style? Ie, in order to also allow 2.5 kernels to be used correctly?

In any case, my problem is that busybox rmmod does not support the --version
option and thus throws an error on my console at shutdown. 

Can somebody perhaps enlighten me as to what the check is actually supposed to
check?

------- Comment #1 From Jakub Moc (RETIRED) 2008-01-09 17:22:39 0000 -------
(In reply to comment #0)
> using something like uname -r should work better.

Should be just removed altogether w/ 2.4 kernels being unsupported on Gentoo.

------- Comment #2 From Chris Gianelloni (RETIRED) 2008-04-09 23:52:19 0000 -------
Marking this one as a duplicate since the other has a patch... ;]

*** This bug has been marked as a duplicate of bug 207371 ***

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug