From 2fefe778829c00dd2aa2b382f9d78728760aae8a Mon Sep 17 00:00:00 2001 From: Ilario Gelmetti Date: Tue, 26 Nov 2024 19:03:04 +0100 Subject: [PATCH] avoid format error when evData.service is empty --- .../hotplug-initd-services/files/usr/bin/hotplug-initd-observer | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hotplug-initd-services/files/usr/bin/hotplug-initd-observer b/packages/hotplug-initd-services/files/usr/bin/hotplug-initd-observer index 4c2a77a3d..11802439c 100755 --- a/packages/hotplug-initd-services/files/usr/bin/hotplug-initd-observer +++ b/packages/hotplug-initd-services/files/usr/bin/hotplug-initd-observer @@ -11,7 +11,7 @@ local function notifyHooks(evData, evName) for hook in fs.dir(hooksDir) do os.execute( string.format( 'ACTION="%s" SERVICE="%s" %s/%s', - evName, evData.service, hooksDir, hook ) ) + evName, evData.service or '', hooksDir, hook ) ) end end