summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakTermServ
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/drakTermServ')
-rwxr-xr-xperl-install/standalone/drakTermServ36
1 files changed, 23 insertions, 13 deletions
diff --git a/perl-install/standalone/drakTermServ b/perl-install/standalone/drakTermServ
index 8f68d0fa8..0619e4f26 100755
--- a/perl-install/standalone/drakTermServ
+++ b/perl-install/standalone/drakTermServ
@@ -686,8 +686,15 @@ sub maintain_clients {
my $entry_nbi = new Gtk::Combo();
my @images = grep(/\.nbi/, all("/var/lib/tftpboot/"));
- $entry_nbi->set_popdown_strings(@images);
- $entry_nbi->set_value_in_list(1, 0);
+ my $have_nbis = @images;
+ if ($have_nbis ne 0) {
+ $entry_nbi->set_popdown_strings(@images);
+ $entry_nbi->set_value_in_list(1, 0);
+ } else {
+ $in->ask_warn('',_("No net boot images created!"));
+ make_nbi();
+ return 1;
+ }
gtkpack($status_box,
my $client_box = gtkpack_(new Gtk::VBox(1,10),
@@ -1248,7 +1255,8 @@ sub addclient {
my $clients = "/etc/dhcpd.conf.etherboot.clients";
open(CLIENT, ">> $clients") || warn ("Can't open $clients!");
- print_client_entry("CLIENT", $hostname, %ts_clients);
+ my $client_entry = format_client_entry($hostname, %ts_clients);
+ print CLIENT $client_entry;
close CLIENT;
0;
}
@@ -1277,25 +1285,27 @@ sub delclient {
}
}
-sub print_client_entry {
- #- print a client entry, in proper format
- my ($handle, $client, %ts_clients) = @_;
+sub format_client_entry {
+ #- create a client entry, in proper format
+ my ($client, %ts_clients) = @_;
- print $handle "host $client {\n";
- print $handle "\thardware ethernet\t$ts_clients{$client}->{hardware};\n";
- print $handle "\tfixed-address\t\t$ts_clients{$client}->{address};\n";
- print $handle "\tfilename\t\t\"$ts_clients{$client}->{filename}\";\n";
- print $handle "}\n";
+ my $entry = "host $client {\n";
+ $entry .= "\thardware ethernet\t$ts_clients{$client}->{hardware};\n";
+ $entry .= "\tfixed-address\t\t$ts_clients{$client}->{address};\n";
+ $entry .= "\tfilename\t\t\"$ts_clients{$client}->{filename}\";\n";
+ $entry .= "}\n";
+ $entry
}
sub write_dhcpd_conf {
my %ts_clients = @_;
my $clients = "/etc/dhcpd.conf.etherboot.clients";
my $key;
-
+
open(CLIENT, "> $clients") || warn ("Can't open $clients!");
foreach $key(keys(%ts_clients)){
- print_client_entry("CLIENT", $key, %ts_clients);
+ my $client_entry = format_client_entry($key, %ts_clients);
+ print CLIENT $client_entry;
}
close CLIENT
}
' href='#n283'>283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the isodumper package.
#
# Translators:
# Automatically generated, 2013
# FIRST AUTHOR <EMAIL@ADDRESS>, 2008
msgid ""
msgstr ""
"Project-Id-Version: Mageia\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-07-18 11:44+0200\n"
"PO-Revision-Date: 2016-07-18 07:29+0000\n"
"Last-Translator: Yves Brungard\n"
"Language-Team: Georgian (http://www.transifex.com/MageiaLinux/mageia/"
"language/ka/)\n"
"Language: ka\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"

#: lib/isodumper.py:123
#, python-format
msgid "%r not known to UDisks2"
msgstr ""

#: lib/isodumper.py:190
msgid "Mb"
msgstr ""

#: lib/isodumper.py:210
msgid "Target Device: "
msgstr "სამიზნე მოწყობილობა: "

#: lib/isodumper.py:232
msgid "Backup to: "
msgstr ""

#: lib/isodumper.py:236
msgid "Formatting confirmation"
msgstr ""

#: lib/isodumper.py:241
msgid "The device was formatted successfully."
msgstr ""

#: lib/isodumper.py:245
msgid "An error occurred while creating a partition."
msgstr ""

#: lib/isodumper.py:249
msgid "Authentication error."
msgstr ""

#: lib/isodumper.py:253
msgid "An error occurred."
msgstr ""

#: lib/isodumper.py:290
msgid "Backup confirmation"
msgstr ""

#: lib/isodumper.py:290
msgid "Do you want to overwrite the file?"
msgstr ""

#: lib/isodumper.py:298
#, python-format
msgid ""
"The destination directory is too small to receive the backup (%s Mb needed)"
msgstr ""

#: lib/isodumper.py:304 lib/isodumper.py:666
msgid "Backup to:"
msgstr ""

#: lib/isodumper.py:324
msgid "The device is too small to contain the ISO file."
msgstr ""

#: lib/isodumper.py:328
msgid "Writing confirmation"
msgstr ""

#: lib/isodumper.py:331
msgid "The device is bigger than 32 Gbytes. Are you sure you want use it?"
msgstr ""

#: lib/isodumper.py:331 lib/isodumper.py:508
msgid "Warning"
msgstr "გაფრთხილება"

#: lib/isodumper.py:356
msgid "Unmounting all partitions of "
msgstr "ყველა პარტიციის მოხსნა "

#: lib/isodumper.py:358
msgid "Trying to unmount "
msgstr ""

#: lib/isodumper.py:362
#, python-format
msgid "Partition %s is busy"
msgstr ""

#: lib/isodumper.py:366
msgid " was terminated by signal "
msgstr " შეჩერდა შემდეგი სიგნალის მიერ "

#: lib/isodumper.py:366 lib/isodumper.py:372
msgid "Error, umount "
msgstr "შეცდომა მოხსნისას "

#: lib/isodumper.py:370
msgid " successfully unmounted"
msgstr ""

#: lib/isodumper.py:372
msgid " returned "
msgstr " დაბრუნებული "

#: lib/isodumper.py:376
msgid "Execution failed: "
msgstr "გაშვების შეცდომა: "

#: lib/isodumper.py:385
msgid "Could not read mtab !"
msgstr "ვერ წავიკითხე mtab !"

#: lib/isodumper.py:395 lib/isodumper.py:422
msgid "Reading error."
msgstr ""

#: lib/isodumper.py:403
msgid "You don't have permission to write to the device"
msgstr ""

#: lib/isodumper.py:408 lib/isodumper.py:409
msgid " to "
msgstr ""

#: lib/isodumper.py:408
msgid "Writing "
msgstr "ჩაწერა "

#: lib/isodumper.py:409
msgid "Executing copy from "
msgstr ""

#: lib/isodumper.py:429 lib/isodumper.py:443 lib/isodumper.py:453
msgid "Writing error."
msgstr ""

#: lib/isodumper.py:436
msgid "Wrote: "
msgstr "დაწერა: "

#: lib/isodumper.py:448
msgid " successfully written to "
msgstr " წარმატებით ჩაიწერა "

#: lib/isodumper.py:448 lib/isodumper.py:567
msgid "Image "
msgstr "ანაბეჭდი "

#: lib/isodumper.py:449
msgid "Bytes written: "
msgstr ""

#: lib/isodumper.py:461
msgid "Checking "
msgstr ""

#: lib/isodumper.py:486
msgid "SHA1 sum: "
msgstr ""

#: lib/isodumper.py:487
msgid "MD5  sum: "
msgstr ""

#: lib/isodumper.py:496
msgid "Success"
msgstr ""

#: lib/isodumper.py:496
msgid ""
"The operation completed successfully.\n"
" You are free to unplug it now, a logfile \n"
"(/home/-user- or /root)/.isodumper/isodumper.log will be saved when\n"
" you close the application."
msgstr ""

#: lib/isodumper.py:508
msgid ""
"Writing is in progress. Exiting during writing \n"
"            will make the device or the backup unusable.\n"
"            Are you sure you want to quit during writing?"
msgstr ""

#: lib/isodumper.py:520
msgid "Error"
msgstr "შეცდომა"

#: lib/isodumper.py:571 lib/isodumper.py:625
msgid "IsoDumper"
msgstr ""

#: lib/isodumper.py:571
msgid ""
"Mageia IsoDumper<BR />----------------<BR />This GUI program is primarily "
"for safely writing a bootable ISO image to a USB flash drive, an operation "
"devious & potentially hazardous when done by hand. As a bonus, it can also "
"back up theentire previous<BR />contents of the flash drive onto the hard "
"disc, and restore the flash drive to its previous state subsequently.<BR /"
">It gives also a feature for formatting the USB device.<BR /><BR />IsoDumper "
"can be launched either from the menus, or a user or root console with the "
"command 'isodumper'.<BR />For normal users, the root password is solicited; "
"this is necessary for the program's operation. <BR />The flash drive can be "
"inserted beforehand or once the program is started. In the latter case, a "
"dialogue will say that there is no flash drive inserted, and allow a 'retry' "
"to find it once it is. <BR />(You may have to close any automatically opened "
"File Manager window).<BR /><BR />The fields of the main window are as "
"follows:<BR />- Device to work on: the device of the USB flash drive, a drop-"
"down list to choose from.<BR />- Write Image: to choose the source ISO image "
"*.iso (or flash drive backup file *.img) to write out.<BR />- Write to "
"device: This button launches the operation - with a prior warning dialogue. "
"<BR />The operation is shown in the progress bar beneath.<BR />- Backup to: "
"define the name and placement of the backup image file. The current flash "
"drive will be backed up to a disc file. Note that the entire flash drive is "
"preserved, regardless of its actual contents; ensure that you have the "
"necessary free disc space (the same size as the USB device). This backup "
"file can be used later to restore the flash drive by selecting it as the "
"source *.img file to write out.<BR />- Backup the device: launch the backup "
"operation.<BR />- Format the device:  create an unique partition on the "
"entire volume in the specified format in FAT, NTFS or ext. You can specify a "
"volume name and the format in a new dialog box.<BR />"
msgstr ""

#: lib/isodumper.py:617
msgid "Choose an image"
msgstr ""

#: lib/isodumper.py:618
msgid ""
"Warning\n"
"This will destroy all data on the target device,\n"
"        are you sure you want to proceed?\n"
"        If you say ok here, please <b>do not unplug</b>        the device "
"during the following operation."
msgstr ""

#: lib/isodumper.py:653
msgid "Device to work on:"
msgstr ""

#: lib/isodumper.py:657
msgid "Write Image:"
msgstr ""

#: lib/isodumper.py:663
msgid "&Write to device"
msgstr ""

#: lib/isodumper.py:672
msgid "&Backup the device"
msgstr ""

#: lib/isodumper.py:676
msgid "Format the device in FAT, NTFS or ext:"
msgstr ""

#: lib/isodumper.py:678
msgid "&Format the device"
msgstr ""

#: lib/isodumper.py:682
msgid "Progress"
msgstr ""

#: lib/isodumper.py:686
msgid "Report"
msgstr ""

#: lib/isodumper.py:691 lib/isodumper.py:799
msgid "&Refresh"
msgstr ""

#: lib/isodumper.py:693
msgid "&About"
msgstr ""

#: lib/isodumper.py:695
msgid "&Help"
msgstr ""

#: lib/isodumper.py:697
msgid "&Quit"
msgstr ""

#: lib/isodumper.py:703
msgid "UDisks2 is not available on your system"
msgstr ""

#: lib/isodumper.py:722
msgid "Label for the device:"
msgstr ""

#: lib/isodumper.py:726
msgid "FAT 32 (Windows)"
msgstr ""

#: lib/isodumper.py:728
msgid "NTFS (Windows)"
msgstr ""

#: lib/isodumper.py:730
msgid "ext4 (Linux)"
msgstr ""

#: lib/isodumper.py:732
msgid "Execute"
msgstr ""

#: lib/isodumper.py:733 lib/isodumper.py:800
msgid "Cancel"
msgstr "გამოქცევა"

#: lib/isodumper.py:790
msgid "A tool for writing ISO images to  a device"
msgstr ""

#: lib/isodumper.py:798
msgid ""
"Warning\n"
"No target devices were found.\n"
"You need to plug in a USB Key to which the image can be written."
msgstr ""

#: polkit/org.mageia.isodumper.policy.in.h:1
msgid "Run Isodumper"
msgstr ""

#: polkit/org.mageia.isodumper.policy.in.h:2
msgid "Authentication is required to run Isodumper"
msgstr ""

#: share/applications/isodumper.desktop.in.h:1
msgid "A GUI tool to write .img and .iso files to USB sticks"
msgstr ""