mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
interfaces: delete the correct lock #6102
$port is /dev/foo0 but the lock is called LCK..foo0
This commit is contained in:
parent
637e3c4124
commit
e892a560ff
@ -1239,7 +1239,7 @@ EOD;
|
||||
|
||||
/* clean up old lock files */
|
||||
foreach ($ports as $port) {
|
||||
@unlink("/var/spool/lock/LCK..{$port}");
|
||||
@unlink('/var/spool/lock/LCK..' . basename($port));
|
||||
}
|
||||
|
||||
/* fire up mpd */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user