From f2ed51d33461b4d6898573777666711ccf83b7d5 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 18 Nov 2002 14:13:38 +0000 Subject: switch drakTermServ to new option scheme --- perl-install/standalone.pm | 12 +++++++++++- perl-install/standalone/drakTermServ | 14 -------------- 2 files changed, 11 insertions(+), 15 deletions(-) (limited to 'perl-install') diff --git a/perl-install/standalone.pm b/perl-install/standalone.pm index 514585d27..69e24b1dc 100644 --- a/perl-install/standalone.pm +++ b/perl-install/standalone.pm @@ -49,8 +49,18 @@ Backup and Restore application --help : show this message. --version : show version name. "), - 'draksec' => N(" [OPTIONS]... + 'draksec' => N("[OPTIONS]... --debug print debugging information"), + 'drakTermServ' => N("[OPTIONS]... +Mandrake Terminal Server Configurator +--enable : enable MTS +--disable : disable MTS +--start : start MTS +--stop : stop MTS +--adduser : add an existing system user to MTS (requires username) +--deluser : delete an existing system user from MTS (requires username) +--addclient : add a client machine to MTS (requires MAC address, IP, nbi image name) +--delclient : delete a client machine from MTS (requires MAC address, IP, nbi image name)"), 'drakxtv' => "[--no-guess]", 'drakupdate_fstab' => " [--add | --del] \n", 'keyboardrake' => N("[keyboard]"), diff --git a/perl-install/standalone/drakTermServ b/perl-install/standalone/drakTermServ index 2d438757c..4e717098f 100755 --- a/perl-install/standalone/drakTermServ +++ b/perl-install/standalone/drakTermServ @@ -69,20 +69,6 @@ my $cfg_dir = "/etc/drakxtools/draktermserv/"; my $cfg_file = $cfg_dir . "draktermserv.conf"; my $server_ip = get_ip_from_sys(); -if ("@ARGV" =~ /--help|-h/) { - print q(Mandrake Terminal Server Configurator ---enable : enable MTS ---disable : disable MTS ---start : start MTS ---stop : stop MTS ---adduser : add an existing system user to MTS (requires username) ---deluser : delete an existing system user from MTS (requires username) ---addclient : add a client machine to MTS (requires MAC address, IP, nbi image name) ---delclient : delete a client machine from MTS (requires MAC address, IP, nbi image name) -); - exit(0); -} - #- make sure terminal server and friends are installed my $ts = system("rpm -qa | grep terminal-server > /dev/null"); if ($ts == 256) { -- cgit v1.2.1