diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2010-06-20 19:25:43 +0400 |
---|---|---|
committer | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2010-06-20 19:25:43 +0400 |
commit | 22ff63fa0ea80d5afcddcf442bbf47c90e0468df (patch) | |
tree | 320b1fb85a429c9be6b7b86130232c9ce9600ae7 /recipes/angstrom/angstrom-version/lsb_release | |
parent | 982a1168dc24ca1bd36b068d60981a2c5cb2880d (diff) | |
parent | c5955cfe486cb84ba27ad0692ceecdaab779bb99 (diff) |
Merge branch 'org.openembedded.dev' of git://git.openembedded.org/openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/angstrom/angstrom-version/lsb_release')
-rwxr-xr-x | recipes/angstrom/angstrom-version/lsb_release | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/recipes/angstrom/angstrom-version/lsb_release b/recipes/angstrom/angstrom-version/lsb_release new file mode 100755 index 0000000000..11b48141f5 --- /dev/null +++ b/recipes/angstrom/angstrom-version/lsb_release @@ -0,0 +1,43 @@ +#!/bin/sh +VERSION="$(cat /etc/angstrom-version | head -n1 | awk '{print $2}')" +CODENAME="foo" + +case $1 in +"-v") + echo "No LSB modules are available." + ;; +"-i") + echo "Distributor ID: Angstrom" + ;; +"-d") + echo "Description: Angstrom GNU/Linux $VERSION ($CODENAME)" + ;; +"-r") + echo "Release: $VERSION" + ;; +"-c") + echo "Codename: $CODENAME" + ;; +"-a") + echo "Distributor ID: Angstrom" + echo "Description: Angstrom GNU/Linux $VERSION ($CODENAME)" + echo "Release: $VERSION" + echo "Codename: $CODENAME" + ;; +"-s") + echo "No LSB modules are available." + ;; +*) + echo "Usage: lsb_release [options]" + echo "" + echo "Options:" + echo " -h, --help show this help message and exit" + echo " -v, --version show LSB modules this system supports" + echo " -i, --id show distributor ID" + echo " -d, --description show description of this distribution" + echo " -r, --release show release number of this distribution" + echo " -c, --codename show code name of this distribution" + echo " -a, --all show all of the above information" + echo " -s, --short show requested information in short format" +;; +esac |