+ if grep -q "^${1}" "$CONFFILE" ; then
+ sed -i "s#^${1}.*#${1}${2}#" $CONFFILE
+ # is the new Debian style /etc/default/locale present?
+ elif grep -q "^# ${1}$" "$CONFFILE" ; then
+ # shellcheck disable=SC1117
+ sed -i "s#^\# ${1}#${1}${2}#" $CONFFILE