diff options
author | Anish Mangal <anish@activitycentral.com> | 2012-02-23 13:46:38 (GMT) |
---|---|---|
committer | Ajay Garg <ajay@activitycentral.com> | 2012-10-17 13:40:31 (GMT) |
commit | 2cc6b91918aa8fabeb68b143f12c71cbf017b613 (patch) | |
tree | 962b27ef16dfd897ddb1a5dd01a2a26aca01d63b | |
parent | 3a6858641e8369d89d8df0a8b8d5791a61e4c195 (diff) |
File olpc_build can exist in /bootpart/ or /boot/
Signed-off-by: Ajay Garg <ajay@activitycentral.com>
-rw-r--r-- | extensions/cpsection/aboutcomputer/model.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extensions/cpsection/aboutcomputer/model.py b/extensions/cpsection/aboutcomputer/model.py index 2d68805..5d327ea 100644 --- a/extensions/cpsection/aboutcomputer/model.py +++ b/extensions/cpsection/aboutcomputer/model.py @@ -104,7 +104,10 @@ def print_serial_number(): def get_build_number(): - build_no = _read_file('/boot/olpc_build') + if os.path.isfile('/boot/olpc_build'): + build_no = _read_file('/boot/olpc_build') + elif os.path.isfile('/bootpart/olpc_build'): + build_no = _read_file('/bootpart/olpc_build') if build_no is None: build_no = _read_file('/etc/redhat-release') |