[Frugalware-git] frugalwareutils: netconfig: fix logic in sleep file to work only if service is enabled in systemd
James Buren
ryuo at frugalware.org
Fri Apr 6 07:44:57 CEST 2012
Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalwareutils.git;a=commitdiff;h=a01b401aef869379a318cb71befb556dba8e1f06
commit a01b401aef869379a318cb71befb556dba8e1f06
Author: James Buren <ryuo at frugalware.org>
Date: Fri Apr 6 00:44:52 2012 -0500
netconfig: fix logic in sleep file to work only if service is enabled in systemd
diff --git a/netconfig/netconfig.sleep b/netconfig/netconfig.sleep
index 5432135..99a49ab 100644
--- a/netconfig/netconfig.sleep
+++ b/netconfig/netconfig.sleep
@@ -2,8 +2,8 @@
. "${PM_FUNCTIONS}"
-# No point in proceeding if netconfig is not active.
-if ! systemctl is-active netconfig.service &> /dev/null; then
+# No point in proceeding if netconfig is not enabled.
+if ! systemctl is-enabled netconfig.service &> /dev/null; then
exit $NA
fi
More information about the Frugalware-git
mailing list