diff --git a/dotnet/ComponentClassRegistry/Pcie/src/ShellHelper.cs b/dotnet/ComponentClassRegistry/Pcie/src/ShellHelper.cs index cb48ad3..97df4f5 100644 --- a/dotnet/ComponentClassRegistry/Pcie/src/ShellHelper.cs +++ b/dotnet/ComponentClassRegistry/Pcie/src/ShellHelper.cs @@ -4,8 +4,8 @@ namespace Pcie; public static class ShellHelper { public static Task> Ethtool(string arguments) { ProcessStartInfo info = new() { - FileName = "ethtool", - Arguments = "-P " + arguments, + FileName = "bash", + Arguments = $"-c \"ethtool {arguments}\"", RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false,