home *** CD-ROM | disk | FTP | other *** search
- /**
- * 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);
- }
-
-