diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-01-16 15:10:05 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-01-16 15:14:06 (EST) |
commit | c0c320617f580e1bfa5aebca72ec5aeed3276fcf (patch) | |
tree | 37c2b46ff7da947b9a2a2543279aebefc21e3cda /src/profile/proteanos.sh | |
parent | f38763638d294f38e0b177c28b580e0d6325a16e (diff) |
profile_detect(): New function
Diffstat (limited to 'src/profile/proteanos.sh')
-rw-r--r-- | src/profile/proteanos.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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}" |