From 17564fdc19b8d5f00a1f077775bda6ada2c44441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Mon, 29 Oct 2012 15:13:55 +0100 Subject: [PATCH] spec: active_profile converted from full path to name in %post --- tuned.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tuned.spec b/tuned.spec index 6edc6cb..4cbf691 100644 --- a/tuned.spec +++ b/tuned.spec @@ -70,6 +70,9 @@ if [ $1 -eq 1 ]; then /usr/bin/systemctl daemon-reload &>/dev/null || : fi +# convert active_profile from full path to name (if needed) +sed -i 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' /etc/tuned/active_profile + %preun # package removal, not upgrade