summaryrefslogtreecommitdiffstats
path: root/perl-install/patch/patch-stage2-updatemodules.pl
blob: a62e83e4658bcd4c5a0b2d3e785a35a32c52e20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# put this file in install/patch.pl, and boot with auto_install=install/patch.pl
# put modules in install/modules and list them below

my @modules = map { "install/modules/$_.ko" } 'tg3';

foreach my $remote (@modules) {
    my $local = '/tmp/' . basename($remote);
    
    install_any::getAndSaveFile($remote, $local);

    run_program::run(["/usr/bin/insmod_", "insmod"], "-f", $local);
}