aboutsummaryrefslogtreecommitdiff
path: root/linaro-hwpack-install
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2013-12-13 11:03:04 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2013-12-13 11:03:04 +0200
commitafe452a29514ae32503630095341172403256bd6 (patch)
treeab4a2a60d52b4174f323213fc21a3fc0f5fa9344 /linaro-hwpack-install
parent0609c3eac862930ce1e45adf008ecee4677f47a2 (diff)
Refactor the code to detect rootfs distribution
Change-Id: Ib158ae468f3010cb49eef3b1453d20c5115bbca4 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'linaro-hwpack-install')
-rwxr-xr-xlinaro-hwpack-install6
1 files changed, 3 insertions, 3 deletions
diff --git a/linaro-hwpack-install b/linaro-hwpack-install
index 4a37d3f..f64e33b 100755
--- a/linaro-hwpack-install
+++ b/linaro-hwpack-install
@@ -1,8 +1,7 @@
#!/bin/sh
# linaro-hwpack-install - Install a Linaro Hardware Pack.
-# This script is meant to run inside a chroot containing nothing other than
-# ubuntu-minimal, so it must not depend on anything that's not in
-# there.
+# This script is meant to run inside a chroot. It must not depend on anything
+# that's not in there.
# TODO: When upgrading to a newer hwpack, make sure packages and apt sources
# that are no longer needed are removed.
@@ -44,6 +43,7 @@ APT_GET_OPTIONS="Dir::Etc::SourceList=${SOURCES_LIST_FILE}"
SUPPORTED_FORMATS="1.0 2.0 3.0" # A space-separated list of hwpack formats.
FLASH_KERNEL_SKIP="true"
export FLASH_KERNEL_SKIP # skip attempting to run flash-kernel-hooks
+DISTRIBUTION=`grep '^ID=' /etc/os-release | sed 's/ID=//'`
sudo="sudo"
if [ $(id -u) -eq 0 ]; then