From 815484f41052cf13ff5b0c25d799b8236d466610 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 13 Feb 2011 08:39:20 +0100 Subject: [PATCH] Improve regex in lsb-base-logging.sh for X-Interactive scripts. --- debian/changelog | 1 + debian/lsb-base-logging.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index b519936f..f036ab9f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,7 @@ systemd (17-1) UNRELEASED; urgency=low [ Michael Biebl ] * Bump build dependency on valac to (>= 0.10.3). + * Improve regex in lsb-base-logging.sh for X-Interactive scripts. -- Tollef Fog Heen Sun, 13 Feb 2011 08:31:09 +0100 diff --git a/debian/lsb-base-logging.sh b/debian/lsb-base-logging.sh index 57f45533..cfd04ccf 100644 --- a/debian/lsb-base-logging.sh +++ b/debian/lsb-base-logging.sh @@ -21,7 +21,7 @@ if [ -e /sys/fs/cgroup/systemd ] ; then case "$0" in /etc/init.d/*) # Don't redirect if the init script has X-Interactive: true - if ! grep -qs "X-Interactive: true" "$0"; then + if ! grep -qs "^# X-Interactive:.*true" "$0"; then _use_systemctl=1 fi ;; -- 2.39.5