summaryrefslogtreecommitdiffstats
path: root/perl-install/patch
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-04-07 10:30:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-04-07 10:30:51 +0000
commit59f9a21b8acc9cf7f58504c6c6402e77c49d78fd (patch)
tree7824cb4e22d1f035ef5b0a2a9f6044c54a6b9085 /perl-install/patch
parentc1219e637b5b9d31351a43e712353b89e0433c3a (diff)
downloaddrakx-backup-do-not-use-59f9a21b8acc9cf7f58504c6c6402e77c49d78fd.tar
drakx-backup-do-not-use-59f9a21b8acc9cf7f58504c6c6402e77c49d78fd.tar.gz
drakx-backup-do-not-use-59f9a21b8acc9cf7f58504c6c6402e77c49d78fd.tar.bz2
drakx-backup-do-not-use-59f9a21b8acc9cf7f58504c6c6402e77c49d78fd.tar.xz
drakx-backup-do-not-use-59f9a21b8acc9cf7f58504c6c6402e77c49d78fd.zip
*** empty log message ***
Diffstat (limited to 'perl-install/patch')
-rw-r--r--perl-install/patch/patch-stage2-updatemodules.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/perl-install/patch/patch-stage2-updatemodules.pl b/perl-install/patch/patch-stage2-updatemodules.pl
new file mode 100644
index 000000000..a62e83e46
--- /dev/null
+++ b/perl-install/patch/patch-stage2-updatemodules.pl
@@ -0,0 +1,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);
+}