# mana(1) completion -*- shell-script -*- _mana() { local cur prev words cword _init_completion || return if [[ "$cur" == -* ]]; then COMPREPLY=( $( compgen -u "$cur" ) ) else local opts=$( _parse_help "$1" ) [[ $opts ]] || opts="user host proxy service log dm clock pan rpm update wall" # POSIX fallback COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) ) fi } && complete -F _mana mana # ex: ts=4 sw=4 et filetype=sh 'vcs-git' href='ssh://git@git.mageia.org/software/drakx-backup-do-not-use' title='drakx-backup-do-not-use Git repository'/>
summaryrefslogtreecommitdiffstats
path: root/perl-install/unused/otherinsmod.pm
blob: 1a8eee9ff115868ed4997e8fa2259b41c9311df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use diagnostics;
use strict;

sub insmod {

    @_ or die "usage: insmod <module>.o [params]\n";

    my $file = shift;
    my $tmpname;

    unless (-r $file) {
	local *F;
	open F, "/modules/modules.cgz" or die "error opening /modules/modules.cgz";

	$tmpname = "/tmp/" . basename($file);

	installCpioFile(\*F, $file, $tmpname, 0) or die "error extracting file";
    }

    my $rc = insmod_main($tmpname || $file, @_);

    unlink($tmpname);

    return $rc;
}
sub modprobe { &insmod }