]> git.neil.brown.name Git - freerunner.git/commitdiff
apm/interlock: make sure /var/lock/suspend/suspend always exists.
authorNeil Brown <neilb@suse.de>
Sun, 15 Feb 2009 11:29:09 +0000 (22:29 +1100)
committerNeil Brown <neilb@suse.de>
Sun, 15 Feb 2009 11:29:09 +0000 (22:29 +1100)
.. otherwise it is hard to get a LOCK_SH lock on it.

apm/interlock

index 063ca912a5c53e4c8bee2b6f201f1eb816e1ee0c..6527bc381278fb84b0535c85800b3af2c19fd3f8 100644 (file)
@@ -17,6 +17,9 @@ mkdir -p /var/lock/suspend
 
 case $1 in
 
+  start)
+    > /var/lock/suspend/suspend
+  ;;
   suspend)
     # prepare for next cycle
     > /var/lock/suspend/next_suspend