]> dxcluster.net Git - spider.git/commitdiff
add database load command
authorminima <minima>
Sun, 13 Oct 2002 11:21:49 +0000 (11:21 +0000)
committerminima <minima>
Sun, 13 Oct 2002 11:21:49 +0000 (11:21 +0000)
cmd/load/usdb.pl [new file with mode: 0644]

diff --git a/cmd/load/usdb.pl b/cmd/load/usdb.pl
new file mode 100644 (file)
index 0000000..2ca209a
--- /dev/null
@@ -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);