diff options
author | Jerry <jvonau@shaw.ca> | 2013-02-28 15:02:20 (GMT) |
---|---|---|
committer | Jerry <jvonau@shaw.ca> | 2013-02-28 15:02:20 (GMT) |
commit | 423b464ec21d831f3fec6fe24c12e5c7502778ee (patch) | |
tree | 01be131123e6a80fcda52aa9b13421d9a13bb0e9 | |
parent | 4c4a77151ac6aebb1fcea5a638316c154ce72a6e (diff) |
alter OS branding for cp #3191
-rw-r--r-- | modules/base/kspost.10.version_number.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/base/kspost.10.version_number.sh b/modules/base/kspost.10.version_number.sh index c3a37d9..289aaa1 100644 --- a/modules/base/kspost.10.version_number.sh +++ b/modules/base/kspost.10.version_number.sh @@ -10,10 +10,11 @@ platform=$(read_config global target_platform) official=$(read_config global official) custinfo=$(read_config global customization_info) buildnr=$(read_buildnr) +image_name=$(read_config global image_name) [ -z "$custinfo" ] && custinfo="customized" #add leading space -custinfo=" $custinfo" +#custinfo=" $custinfo" custstr= if [[ "$official" != "1" ]]; then @@ -21,16 +22,16 @@ if [[ "$official" != "1" ]]; then custbstr="$custinfo" fi -buildstr="$majver.$minver.$relver for ${platform}${custstr} (build $buildnr)" +buildstr="${custstr} for ${platform} (build $image_name)" cat <<EOF # needed for spin debranding -echo "OLPC release $majver (based on Fedora $fver)" > /etc/fedora-release +echo "${buildstr} (based on Fedora $fver)" > /etc/fedora-release # this is used by the activity updater echo "$majver.$minver.$relver" > /etc/olpc-release -sed -i -e "1s/.*/OLPC OS $buildstr/" /etc/issue +sed -i -e "1s/.*/$buildstr/" /etc/issue cp /etc/issue /etc/issue.net echo "${buildstr}" > /boot/olpc_build |