--- google/bin/acs.pl 2007/06/19 21:29:04 50 +++ google/trunk/bin/acs.pl 2007/10/26 11:42:39 112 @@ -8,15 +8,27 @@ use lib './lib'; use CWMP::Server; +use Getopt::Long; my $port = 3333; +my $debug = 0; +my $store_path = 'state.db'; + +GetOptions( + 'debug+' => \$debug, + 'port=i' => \$port, + 'store-path=s' => \$store_path, +); my $server = CWMP::Server->new({ port => $port, - debug => 1, - queue => [ qw/ - GetRPCMethods + store_path => $store_path, + debug => $debug, + default_queue => [ qw/ + GetRPCMethods + GetParameterNames / ], +# Reboot }); $server->run();