diff options
author | Mystery Man <unknown@mandriva.org> | 2001-11-20 23:35:06 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2001-11-20 23:35:06 +0000 |
commit | 9f1dfb0e6b859cba0ebda5f945987ba6c24a596b (patch) | |
tree | d85d9819673c16e4753109862a2eeb9bfa775e7a /perl-install/modparm.pm | |
parent | dee901a3fde82083a630082f04c0139c73ba248f (diff) | |
download | drakx-9f1dfb0e6b859cba0ebda5f945987ba6c24a596b.tar drakx-9f1dfb0e6b859cba0ebda5f945987ba6c24a596b.tar.gz drakx-9f1dfb0e6b859cba0ebda5f945987ba6c24a596b.tar.bz2 drakx-9f1dfb0e6b859cba0ebda5f945987ba6c24a596b.tar.xz drakx-9f1dfb0e6b859cba0ebda5f945987ba6c24a596b.zip |
This commit was manufactured by cvs2svn to create branchtopic/PCMCIA_CS_DISTRO
'PCMCIA_CS_DISTRO'.
Diffstat (limited to 'perl-install/modparm.pm')
-rw-r--r-- | perl-install/modparm.pm | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/perl-install/modparm.pm b/perl-install/modparm.pm deleted file mode 100644 index f1c81b0dd..000000000 --- a/perl-install/modparm.pm +++ /dev/null @@ -1,43 +0,0 @@ -package modparm; # $Id$ - -use diagnostics; -use strict; - -#-###################################################################################### -#- misc imports -#-###################################################################################### -use common; -use log; - - -sub get_options_result($@) { - my ($module, @value) = @_; - mapn { - my ($a, $b) = @_; - $b =~ s/^(\w).*/$1/; - $a ? "$b=$a" : (); - } \@value, [get_options_name($module)]; -} - -sub get_options_name($) { - my ($module) = @_; - - my @names; - my @line = `/sbin/modinfo -p $module`; - foreach (@line) { - chomp; - s/int/i/; - s/string/string/; - s/short/h/; - s/long/l/; - s/(\S) array \(min = (\d+), max = (\d+)\)/$2-$3$1/; - s/(\d)-\1i/$1i/; - if (/parm:\s+(.+)/) { - my ($name, $type) = split '\s', $1; - push @names, "$name ($type)"; - } - } - @names; -} - -1; |