summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-05-26 09:23:38 +0200
committersmos <seth.mos@dds.nl>2012-05-26 09:24:01 +0200
commit17d656fc95258dd39787923216336264132a8640 (patch)
tree001797b2fd8456b1168c45d4d2c89fdb75fcc698 /etc
parent6e0b68bfdea29b2943b6f104373f43cc56537bd8 (diff)
downloadpfsense-17d656fc95258dd39787923216336264132a8640.zip
pfsense-17d656fc95258dd39787923216336264132a8640.tar.gz
Only attempt to remove stale LCK files if they exist.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 79c3ddf..2a078d2 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1707,7 +1707,8 @@ EOD;
/* clean up old lock files */
foreach($ports as $port) {
- unlink("{$g['var_path']}/spool/lock/LCK..{$port}");
+ if(file_exists("{$g['var_path']}/spool/lock/LCK..{$port}"))
+ unlink("{$g['var_path']}/spool/lock/LCK..{$port}");
}
/* fire up mpd */
OpenPOWER on IntegriCloud