Sponsored Content
Top Forums UNIX for Dummies Questions & Answers "menuconfig" utility in Linux Post 302827951 by anand.shah on Monday 1st of July 2013 07:33:57 AM
Old 07-01-2013
"menuconfig" utility in Linux

Hello All,
I have a Kconfig file which contains configuration flags which will be set according to product.When you run "mconf" on Kconfig file you get a window where you can load default configuration file. My questions is that, Can we do this thing in shell script ? Is there any way to load default configuration stored in a file (let's say XYZ.cfg) in shell script ?
Something like below .....
Code:
mconf -f ./config/XYZ.cfg Kconfig

Thanks in advance !!!



Regards,
Anand Shah
 
kreg(8) 						      System Manager's Manual							   kreg(8)

NAME
kreg - Maintains the system file that registers kernel layered products SYNOPSIS
/sbin/kreg -d subset [-c NAME] | -l vendor subset path [-c NAME] OPTIONS
Causes the specified layered product to be loaded or deleted from the NAME.list file for the given name in addition to the /usr/sys/conf/.product.list file. Note that the NAME parameter is case sensitive and must exactly match the NAME prefix for the desired NAME.list file. Deletes the entry for the specified layered product when you remove it from the system. Loads the data that controls how to include the layered product in the kernel build process. DESCRIPTION
The kreg command maintains the /usr/sys/conf/.product.list system file, which registers static kernel layered products. The kreg command creates the file if it does not exist. The file enables system utilities or user supplied commands to locate the kernel parts of a layered product, and it provides information about layered products. The kernel tools use the /usr/sys/conf/.product.list file to build a layered product into the kernel. You can use the file to register a static kernel layered product that has been loaded into the system. The file also can be used by the layered product's Software Control Program (SCP), which is called by the setld command. You copy the /usr/sys/conf/.product.list file into the file that is used to extend the kernel configuration files and that has the follow- ing syntax: /usr/sys/conf/NAME.list The NAME variable specifies the system name that also is used in the system configuration file that has the following syntax: /usr/sys/conf/NAME The doconfig command also will copy the /usr/sys/conf/.product.list file. You can use the -c option to load or delete your layered product into a specific NAME.list file as well as the file. This is useful if you want to load your layered product into a specific NAME.list file without requiring the user to either copy the entire file to the NAME.list file or to manually edit the NAME.list file. The kreg command must be invoked from the root (/) directory. The command can be used only for subsets that are loaded by using the setld command. Also, you must be superuser to use the kreg command. FILES
Contains kernel layered product information. Used to extend the kernel configuration files. SEE ALSO
Commands: doconfig(8), setld(8) System Administration kreg(8)
All times are GMT -4. The time now is 07:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy