aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorRyan Wagoner <rsw686@pfsense.org>2007-02-19 16:46:04 +0000
committerRyan Wagoner <rsw686@pfsense.org>2007-02-19 16:46:04 +0000
commit989a3f63cd20bcf1cdaa61cad2eea94e6fa49319 (patch)
tree66c95a8586db3871cb760b2c96077a6041280b80 /packages
parent8569d929f173745359468e71408aa415f9615290 (diff)
downloadpfsense-packages-989a3f63cd20bcf1cdaa61cad2eea94e6fa49319.tar.gz
pfsense-packages-989a3f63cd20bcf1cdaa61cad2eea94e6fa49319.tar.bz2
pfsense-packages-989a3f63cd20bcf1cdaa61cad2eea94e6fa49319.zip
-ensure /var/spool/lock exists as its required by nut
Diffstat (limited to 'packages')
-rw-r--r--packages/nut/nut.inc8
1 files changed, 8 insertions, 0 deletions
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');