From ac75844bd3614386eec8fb59fd8d74c3747547cb Mon Sep 17 00:00:00 2001 From: fewtarius Date: Sat, 13 Aug 2022 10:24:49 -0400 Subject: [PATCH] Back up the system.cfg file first, then clean any bad data that may have crept into it. --- packages/jelos/sources/autostart/common/001-setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/jelos/sources/autostart/common/001-setup b/packages/jelos/sources/autostart/common/001-setup index 728b6872a..4ed04c430 100755 --- a/packages/jelos/sources/autostart/common/001-setup +++ b/packages/jelos/sources/autostart/common/001-setup @@ -34,4 +34,5 @@ fi ### Make sure there are no invalid characters in system.cfg ### or ES will not start. -sed -i 's/[\d128-\d255]//g' /storage/.config/system/configs/system.cfg +cp /storage/.config/system/configs/system.cfg /storage/.config/system/configs/last_system.cfg +grep -i "^[A-Z|a-z]" /storage/.config/system/configs/last_system.cfg >/storage/.config/system/configs/system.cfg