From c0c320617f580e1bfa5aebca72ec5aeed3276fcf Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 16 Jan 2016 15:10:05 -0500 Subject: profile_detect(): New function --- (limited to 'src/profile/proteanos.sh') diff --git a/src/profile/proteanos.sh b/src/profile/proteanos.sh index 46c0e69..ef578f0 100644 --- a/src/profile/proteanos.sh +++ b/src/profile/proteanos.sh @@ -37,6 +37,18 @@ start() } ' +prof_proteanos_detect_root() +{ + local root="${1}" + + if grep "^ID='proteanos'\$" "${root}/etc/os-release" >/dev/null 2>&1 + then + return 0 + else + return 1 + fi +} + prof_proteanos_normalize_suite() { local suite="${1}" -- cgit v0.9.1