From: minima Date: Sun, 13 Oct 2002 11:21:49 +0000 (+0000) Subject: add database load command X-Git-Tag: PRE-1-52~157 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=3299a5ecf4b1bc16039b5300ce78480bc0e9a999;p=spider.git add database load command --- diff --git a/cmd/load/usdb.pl b/cmd/load/usdb.pl new file mode 100644 index 00000000..2ca209a3 --- /dev/null +++ b/cmd/load/usdb.pl @@ -0,0 +1,20 @@ +# +# reload the usdb file +# +# Be warned, if this is the full database the size of your image will +# increase by at least 20Mb and all activity will stop for several +# minutes +# +# So there. +# +# Copyright (c) 2002 Dirk Koopman G1TLH +# +# $Id$ +# + +my $self = shift; +my @out; +return (1, $self->msg('e5')) if $self->priv < 9; +push @out, (USDB::load()); +@out = ($self->msg('ok')) unless @out; +return (1, @out);