diff options
author | Mystery Man <unknown@mandriva.org> | 2001-09-05 12:55:06 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2001-09-05 12:55:06 +0000 |
commit | ec7d8bfda214073d222fcadfa1ac9d3ed884ea87 (patch) | |
tree | d17c669ffaea9eae8bbc6b1b82b6164e75c6c42d /perl-install/modparm.pm | |
parent | d2428470c34f096821615c7f119775b03aa86253 (diff) | |
download | drakx-V_9mdk.tar drakx-V_9mdk.tar.gz drakx-V_9mdk.tar.bz2 drakx-V_9mdk.tar.xz drakx-V_9mdk.zip |
This commit was manufactured by cvs2svn to create tag 'V_9mdk'.V_9mdk
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; |