From 989a3f63cd20bcf1cdaa61cad2eea94e6fa49319 Mon Sep 17 00:00:00 2001 From: Ryan Wagoner Date: Mon, 19 Feb 2007 16:46:04 +0000 Subject: -ensure /var/spool/lock exists as its required by nut --- packages/nut/nut.inc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/nut/nut.inc b/packages/nut/nut.inc index abf3e73f..f23de98c 100644 --- a/packages/nut/nut.inc +++ b/packages/nut/nut.inc @@ -239,6 +239,14 @@ EOD; if(!($name && $driver && $port)) return false; + /* some installs are missing the lock dir */ + if(!is_dir('/var/spool/lock')) { + @mkdir('/var/spool'); + mkdir('/var/spool/lock'); + chown('/var/spool/lock', 'uucp'); + chgrp('/var/spool/lock', 'dialer'); + } + if($port != 'auto') chown($port, 'uucp'); -- cgit v1.2.3