aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command/thumbnail/generate.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2015-06-21 21:53:03 +0200
committerAndreas Fischer <bantu@phpbb.com>2015-06-21 21:53:03 +0200
commitabf98f92e632eaa130dcffb7829bdee1e5b516f1 (patch)
treeb823641e52eb471d6d2b60c61e4c741b82a0a946 /phpBB/phpbb/console/command/thumbnail/generate.php
parentda7b24449d1767e4afec653399aaf2c0db4524a5 (diff)
parentbcac964cd03626e2139e021e3ed0ff63f8c76c67 (diff)
downloadforums-abf98f92e632eaa130dcffb7829bdee1e5b516f1.tar
forums-abf98f92e632eaa130dcffb7829bdee1e5b516f1.tar.gz
forums-abf98f92e632eaa130dcffb7829bdee1e5b516f1.tar.bz2
forums-abf98f92e632eaa130dcffb7829bdee1e5b516f1.tar.xz
forums-abf98f92e632eaa130dcffb7829bdee1e5b516f1.zip
Merge pull request #3722 from rxu/ticket/13948
[ticket/13948] Correctly forwarding to the RIR for whois feature * rxu/ticket/13948: [ticket/13948] Correctly forwarding to the RIR for whois feature
Diffstat (limited to 'phpBB/phpbb/console/command/thumbnail/generate.php')
0 files changed, 0 insertions, 0 deletions
sub read_already_loaded() { foreach (cat_("/proc/modules")) { my ($name) = split; $conf{$name}{loaded} = 1; } } sub load_deps($) { my ($file) = @_; local *F; open F, $file or log::l("error opening $file: $!"), return 0; foreach (<F>) { my ($f, $deps) = split ':'; push @{$deps{$f}}, split ' ', $deps; } } sub load { my ($name, @options) = @_; $name =~ s/\.o//; $conf{$name}{loaded} and return; eval { load($_, 'prereq') } foreach @{$deps{$name}}; system("packdrake -x /modules/modules.cz* /tmp $name.o"); -r "/tmp/$name.o" or die "can't find module $name\n"; system("/sbin/insmod /tmp/$name.o"); my $retval = $?; system("rm /tmp/$name.o"); $retval and die("insmod $name failed"); } !@ARGV || $ARGV[0] =~ /-h/ and die "usage: modprobe <module> [<options...>]\n"; read_already_loaded(); load_deps("/modules/modules.dep"); load(@ARGV);