modprobe -l option not available
Hi.
The "-l" option of modprobe isn't available anymore ? Is there any replacement ? Regards. Paul. |
That's right. In the manual page of the version shipped in Slackware 13.37 we were warned:
Quote:
Code:
find /lib/modules/<kernel version>/ -type f -name "*ko" |
EDIT: Ignore this, it's wrong! (thanks Didier, for spotting the glaring error)
You could always use lsmod, that would be slightly more elegant than Didier's solution. |
I've been using rc.firewall (from Projectfiles.com). So with Slackware 14 it spits out that error and I've decided to use 'lsmod' instead of lsmod -l in the line:
Code:
if (( `modprobe -l | grep -c "$MODULE"` )); then Anybody else still using the firewall from projectfiles? |
Quote:
|
Thank you.
I didn't notice the warning in the manual of the 13.37. Thank for the tip. |
Quote:
I suppose you are thinking about making the replacement in this code snippet (from line #1189): Code:
for MODULE in $REQUIRED_MODULES; do I would suggest you try the Easy Firewall Generator for IPTables from Alien Bob instead. |
Quote:
|
Quote:
Code:
for i in $(find /lib/modules/$(uname -r)/ -type f -name "*ko"); do basename $i; done EDIT Nostalgia? Add following line to your ~/.bashrc Code:
alias ls-l='for i in $(find /lib/modules/$(uname -r)/ -type f -name "*ko"); do basename $i; done' Code:
ls-l |
Quote:
|
Quote:
|
All times are GMT -5. The time now is 01:41 AM. |