home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
boot
/
i386
/
root
/
usr
/
share
/
YaST2
/
clients
/
print-product.ycp
< prev
next >
Wrap
Text File
|
2006-11-29
|
720b
|
39 lines
/**
* File:
* clients/print-product.ycp
*
* Module:
* Print product name
*
* Summary:
* Prints the product name -- used by update-bootloader
*
* Authors:
* Stefan Fent <sf@suse.de>
* Olaf Dabrunz <od@suse.de>
*
* $Id: print-product.ycp 30071 2006-04-12 15:36:51Z odabrunz $
*
*/
{
import "Product";
import "CommandLine";
import "Mode";
string name = "";
// activate command line mode
Mode::SetUI("commandline");
// get loader type
string loader = (string)SCR::Read(.sysconfig.bootloader.LOADER_TYPE);
if (loader == "grub")
{
name = Product::name;
} else {
name = Product::short_name;
}
CommandLine::Print(name);
}