ACC SHELL

Path : /usr/share/YaST2/clients/
File Upload :
Current File : //usr/share/YaST2/clients/print-product.ycp

/**
 * 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);
}


ACC SHELL 2018