summaryrefslogtreecommitdiff
path: root/tools
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-09-05 17:25:25 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-09-05 17:25:25 +0200
commit63b7d68d7f4babfe5f64009027c0e2b39db6e6d9 (patch)
tree00bf06336f421ef03cd079e20e110a2db951ce5c /tools
parent13830a357f5cd2e5f5c2329118464ecf19a41181 (diff)
systemd-prestart-check: ouch, I forgot to rename var...
(bzr r4153.9.64)
Diffstat (limited to 'tools')
-rw-r--r--tools/systemd-prestart-check4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/systemd-prestart-check b/tools/systemd-prestart-check
index 1cea90be6..d07b7bc0e 100644
--- a/tools/systemd-prestart-check
+++ b/tools/systemd-prestart-check
@@ -7,7 +7,7 @@ this_unit=$(sed -n "s,.*:name=systemd:.*/\([^/]\+.service\)[/\b]\?.*,\1,p" /proc
if grep -q compiz /usr/share/gnome-session/sessions/ubuntu.session ; then
echo "GNOME Session is starting Compiz"
- if [ -n "$this_unit" ] && [[ $string != "unity"* ]]; then
+ if [ -n "$this_unit" ] && [[ $this_unit == "unity"* ]]; then
systemctl --user stop $this_unit
fi
exit 1
@@ -22,7 +22,7 @@ upstart_status=$(initctl status unity7) || true
if (echo "$upstart_status" | grep -q "start/running"); then
echo "Unity is managed by Upstart"
- if [ -n "$this_unit" ] && [[ $string != "unity"* ]]; then
+ if [ -n "$this_unit" ] && [[ $this_unit == "unity"* ]]; then
systemctl --user stop $this_unit
fi