Skip to content

Commit

Permalink
rc.d
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Sep 24, 2023
1 parent 6287f8e commit bd6eb2a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions NewLife.Agent/RcInit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ public override Boolean Remove(String serviceName)
if (File.Exists(file)) File.Delete(file);
}
}
// OpenWrt
{
var dir = "/etc/rc.d/";
if (Directory.Exists(dir))
{
file = dir.CombinePath($"S50{serviceName}");
if (File.Exists(file)) File.Delete(file);
}
}

return true;
}
Expand Down

0 comments on commit bd6eb2a

Please sign in to comment.