netconfig: fix logic in sleep file to work only if service is enabled in systemd
authorJames Buren <ryuo@frugalware.org>
Fri, 6 Apr 2012 05:44:52 +0000 (00:44 -0500)
committerJames Buren <ryuo@frugalware.org>
Fri, 6 Apr 2012 05:44:52 +0000 (00:44 -0500)
netconfig/netconfig.sleep

index 5432135..99a49ab 100644 (file)
@@ -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