From 567508a69a9a85102adcb1f84dd03d5dc9012ae8 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 14 Jul 2020 23:27:55 +0200 Subject: [PATCH] migration.sh: remove all old glcd_ keywords Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/7bb05407717cfe77628ca86956dc27712a879a7c Author: vanhofen Date: 2020-07-14 (Tue, 14 Jul 2020) Origin message was: ------------------ - migration.sh: remove all old glcd_ keywords --- data/control/migration.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/control/migration.sh b/data/control/migration.sh index a1500c4af..20fe6891c 100644 --- a/data/control/migration.sh +++ b/data/control/migration.sh @@ -19,6 +19,11 @@ if [ -e neutrino.conf ]; then mv /var/tuxbox/config/webtv_usr.xml /var/tuxbox/webtv/ fi + # remove all old glcd_ keywords; neutrino will add the new ones + if ! grep -q glcd_foreground_color neutrino.conf ; then + sed -i "/^glcd_/d" neutrino.conf + fi + sort neutrino.conf > neutrino.sort mv neutrino.sort neutrino.conf fi