diff --git a/src/shell/scripts/omp.lua b/src/shell/scripts/omp.lua index d6a111a33f10..4de0af3d7d54 100644 --- a/src/shell/scripts/omp.lua +++ b/src/shell/scripts/omp.lua @@ -7,16 +7,7 @@ if '::UPGRADE::' == 'true' then end -- Cache PID - -function generateCustomUUID() - local template = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' - return string.gsub(template, '[x]', function(c) - local v = math.random(0, 0xf) - return string.format('%x', v) - end) -end - -os.setenv("POSH_PID", generateCustomUUID()) +os.setenv("POSH_PID", os.getpid()) -- Helper functions