From 720e68f29889d2e300ee30b53bfbb290eac42ec0 Mon Sep 17 00:00:00 2001 From: longchair Date: Tue, 12 Apr 2016 13:06:08 +0200 Subject: [PATCH] config/functions : allow to have a per distro functions script This also overriding a few default functions. --- config/functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/functions b/config/functions index 80185349b0..8ef06104cc 100644 --- a/config/functions +++ b/config/functions @@ -471,3 +471,8 @@ debug_strip() { $STRIP `find $* -type f -executable 2>/dev/null` 2>/dev/null || : fi } + +# Use distribution functions if any +if [ -f "distributions/$DISTRO/config/functions" ]; then + . distributions/$DISTRO/config/functions +fi