interfaces: delete the correct lock #6102

$port is /dev/foo0 but the lock is called LCK..foo0
This commit is contained in:
Franco Fichtner 2022-11-06 09:13:21 +01:00
parent 637e3c4124
commit e892a560ff

View File

@ -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 */