summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-11-18 14:13:38 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-11-18 14:13:38 +0000
commitf2ed51d33461b4d6898573777666711ccf83b7d5 (patch)
treecb645d5eb1d7a107c1f1e81bd5e34b9b8ed4032b /perl-install
parentca6e0a756bc83c1aa9927b99cc8e76f791202835 (diff)
downloaddrakx-backup-do-not-use-f2ed51d33461b4d6898573777666711ccf83b7d5.tar
drakx-backup-do-not-use-f2ed51d33461b4d6898573777666711ccf83b7d5.tar.gz
drakx-backup-do-not-use-f2ed51d33461b4d6898573777666711ccf83b7d5.tar.bz2
drakx-backup-do-not-use-f2ed51d33461b4d6898573777666711ccf83b7d5.tar.xz
drakx-backup-do-not-use-f2ed51d33461b4d6898573777666711ccf83b7d5.zip
switch drakTermServ to new option scheme
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/standalone.pm12
-rwxr-xr-xperl-install/standalone/drakTermServ14
2 files changed, 11 insertions, 15 deletions
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] <device>\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) {