diff options
Diffstat (limited to 'packages/nut')
-rw-r--r-- | packages/nut/nut.inc | 8 |
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'); |