This also needs adjustment of some scripts that expect/scrape this file (indeed unnecessarily): https://github.com/Fourdee/DietPi/blob/testing/PREP_SYSTEM_FOR_DIETPI.sh#L522
Finds within code: https://github.com/Fourdee/DietPi/search?q="config.txt"&unscoped_q="config.txt"
if (( $G_HW_MODEL < 10 )); thenif (( $G_HW_MODEL < 10 )); then or Menus that are just available for RPi.config.txt declaration should be placed within RPi model check: https://github.com/Fourdee/DietPi/blob/testing/dietpi/func/dietpi-set_hardware#L56-L62PR up for testing: https://github.com/Fourdee/DietPi/pull/1863
REF, pending testing: https://github.com/Fourdee/DietPi/pull/1863#issuecomment-399697869
@MichaIng
Great work on this 👍 No errors in my testing.
I believe we can mark as closed?
@Fourdee
Jep, although I am still thinking that reverting config.txt gpu_mem to gpu_mem_XXX should be done. It is also failsafe in case user did manual add one of those. But I sleep now, will do this tomorrow.
€: Done https://github.com/Fourdee/DietPi/pull/1885 I will mark as closed
Most helpful comment
@Fourdee
Jep, although I am still thinking that reverting config.txt gpu_mem to gpu_mem_XXX should be done. It is also failsafe in case user did manual add one of those. But I sleep now, will do this tomorrow.
€: Done https://github.com/Fourdee/DietPi/pull/1885 I will mark as closed