#!/home/product/code/webui-perl/bin/perl -T -I /home/product/code/firmware/current/lib/perl5
#SUDOER_USERS: nobody
#SUDOER_RUNAS_USERS: root, mta
#SUDOER_TAGS: NOPASSWD, EXEC
use strict;
use warnings;
use Barracuda::Sudo::Lib;

=pod

=head1 NAME

activate_product

=head1 DESCRIPTION

Wraps /home/product/code/firmware/current/bin/activate.pl.
The only flags that can be passed in are --activate and --deactivate.

=cut

my @args = get_argv( qr/^--activate|--deactivate$/ );
system_succeed("/home/product/code/firmware/current/bin/activate.pl", @args);
