Script Index


/usr/sbin/confmeld

Script to install staged config files.

Synopsis

merge the config files located in the config stage directory to the system.


function help()

Parameters:

Description

Help... hmm... I wonder what it does...


function all_config_files()

Parameters:

stdout

a list of all configs in the config stage root

Description

List all the configs in the config stage root


function all_uniq_config_files()

Parameters:

stdout

a list of all uniq configs in the stage directory

Description

List all uniq config *filenames* in the config stage directory


function all_spells_with_staged_configs()

Parameters:

stdout

list of spells that have staged configs

Description

list all spells that have staged configs


function maybe_column()

Parameters:

Description

override column so that we can pass -q to not columnate. Adapted from gaze


function list_spells_with_staged_configs()

Parameters:

stdout

list of spells that have staged configs

Description

nicely list all spells that have staged configs and exit


function list_staged_configs()

Parameters:

stdout

list of staged configs

Description

nicely list all staged configs and exit


function list_all()

Parameters:

stdout

list of spells and their staged configs

Description

nicely list all spells and their staged configs


function parse_stage_config_path()

Parameters:

Description

parses the path to get specific information about the config file


function override_changed_config_menu()

Parameters:

Description

Override the merging menu and always use a preset action


function final_cleanup()

Parameters:

Description

Final check for removing empty spell directories, so the stage dir is left clean


function merge_single_file()

Parameters:

Description

merge only the passed file


function confmeld_partial()

Parameters:

Description

merge only the passed files or spells


function confmeld_all()

Parameters:

Description

merge all the staged configs


function main()

Parameters:

Description

Main If there's no arguments get all the config files and start installing them to the system using install_config_file