diff options
| author | Joey Hess <joeyh@joeyh.name> | 2018-04-30 07:35:47 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2018-04-30 07:35:47 -0400 |
| commit | 345536941eeec4a4562222408d9f4326ce9b2645 (patch) | |
| tree | 7a491d8df377e75f5d493c0d875513027c0aa855 /doc/todo | |
| parent | 584a0ebdb5579bc13f0cf209aa148845bf84947d (diff) | |
| parent | 96ea8e04251bc23dd27faf1f486a2a9f9c29ff98 (diff) | |
Merge branch 'master' into joeyconfig
Diffstat (limited to 'doc/todo')
| -rw-r--r-- | doc/todo/factor_out_Grub.configured_for_any___47__etc__47__default_config.mdwn | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/todo/factor_out_Grub.configured_for_any___47__etc__47__default_config.mdwn b/doc/todo/factor_out_Grub.configured_for_any___47__etc__47__default_config.mdwn new file mode 100644 index 00000000..16c791cd --- /dev/null +++ b/doc/todo/factor_out_Grub.configured_for_any___47__etc__47__default_config.mdwn @@ -0,0 +1,17 @@ +It would be useful to have a property to set key value pairs in /etc/default configs. The code is in Grub.configured. I have not written a patch yet because I am not sure what the module should be called. Possibilities are: + + & EtcDefault.set "anacron" "ANACRON_RUN_ON_BATTERY_POWER" "no" + +or maybe + + & ConfFile.hasShellSetting "/etc/default/anacron" ("ANACRON_RUN_ON_BATTERY_POWER", "no") + +Or possibly both of these, with the former implemented in terms of the latter. + +Notes: + +* The use of a tuple for the last two parameters ensures that the property can be used infix. + +* I think this property should deduplicate the config key after setting it. I.e. after uncommenting and modifying ANACRON_RUN_ON_BATTERY_POWER it should remove any further ANACRON_RUN_ON_BATTERY_POWER settings further down the config. This allows a seamless transition from just using File.containsLine to add to the end of the file. + +--spwhitton |
