commit | b10475e6929b4a573af17ea1c96cd518d7d4e0d3 | [log] [tgz] |
---|---|---|
author | Daniel Lezcano <daniel.lezcano@linaro.org> | Mon Oct 03 11:07:36 2011 +0200 |
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | Mon Oct 03 11:07:36 2011 +0200 |
tree | 4d71e1c629fd9f12a7a22067199965f40a8ba93c | |
parent | 27bc9d695a2db448db67f720487bf1e322320705 [diff] [blame] |
check the files are present Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org Acked-by: Amit Kucheria <amit.kucheria@linaro.org>
diff --git a/include/functions.sh b/include/functions.sh index bff8e13..b2a8b47 100644 --- a/include/functions.sh +++ b/include/functions.sh
@@ -236,6 +236,18 @@ return 0 } +check_cpuhotplug_files() { + + local dirpath=$CPU_PATH/$1 + shift 1 + + for i in $@; do + check_file $i $dirpath || return 1 + done + + return 0 +} + save_governors() { governors_backup=