diff --git a/debian/changelog b/debian/changelog index 9361914..7ea600a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +raspi-config (20151117) jessie; urgency=medium + + * raspi-config modified to remove config variables rather than set default + values when overclocking + + -- Serge Schneider Tue, 17 Nov 2015 11:35:14 +0000 + raspi-config (20151019) jessie; urgency=medium * Add alsa-utils dependency diff --git a/raspi-config b/raspi-config index 4519473..082ee13 100755 --- a/raspi-config +++ b/raspi-config @@ -152,6 +152,21 @@ EOF mv "$3.bak" "$3" } +clear_config_var() { + lua - "$1" "$2" < "$2.bak" +local key=assert(arg[1]) +local fn=assert(arg[2]) +local file=assert(io.open(fn)) +for line in file:lines() do + if line:match("^%s*"..key.."=.*$") then + line="#"..line + end + print(line) +end +EOF +mv "$2.bak" "$2" +} + get_config_var() { lua - "$1" "$2" <