diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-12-31 13:00:59 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-12-31 13:00:59 +0000 |
commit | a0681820e687e576e78ddc91bd9b94a4099bc26a (patch) | |
tree | 2f7c2df3e3066cb49ece603467b6d9a2b40830c6 /source3/utils/net.c | |
parent | 82cfa2b248f3d1515bf70f147a406caaba317f47 (diff) | |
download | samba-a0681820e687e576e78ddc91bd9b94a4099bc26a.tar.gz samba-a0681820e687e576e78ddc91bd9b94a4099bc26a.tar.xz samba-a0681820e687e576e78ddc91bd9b94a4099bc26a.zip |
Add 'net rpc shutdown' and 'net rpc abortshutdown'.
These two little features are very useful, but the passing of options about
needs some serious work. The popt stuff in the shutdown code is #ifdef'ed out
until the main popt loop can be convinced not to chew on the options :-(
Andrew Bartlett
(This used to be commit 51c985be7fbfe5627c5b2590e7610653e7be98e3)
Diffstat (limited to 'source3/utils/net.c')
-rw-r--r-- | source3/utils/net.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c index a87f11b57fd..89eb9211ca1 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -63,11 +63,14 @@ char *opt_password = NULL; char *opt_user_name = NULL; char *opt_workgroup = NULL; int opt_long_list_entries = 0; +int opt_reboot = 0; +int opt_force = 0; int opt_port = 0; int opt_maxusers = -1; char *opt_comment = ""; int opt_flags = -1; int opt_jobid = 0; +int opt_timeout = 0; char *opt_target_workgroup = NULL; static BOOL got_pass = False; @@ -363,6 +366,9 @@ static struct functable net_func[] = { {"flags", 'F', POPT_ARG_INT, &opt_flags}, {"jobid", 'j', POPT_ARG_INT, &opt_jobid}, {"long", 'l', POPT_ARG_NONE, &opt_long_list_entries}, + {"reboot", 'r', POPT_ARG_NONE, &opt_reboot}, + {"force", 'f', POPT_ARG_NONE, &opt_force}, + {"timeout", 't', POPT_ARG_INT, &opt_timeout}, { 0, 0, 0, 0} }; |