build:add sbin and bin to path.

normal users don't have sbin in their path where sfdisk is
installed.

Change-Id: I7ee3412ca0f6fb208310aa7a0ee8cd88c0f3f80c
This commit is contained in:
Kees Jongenburger 2013-05-14 11:08:45 +02:00 committed by Kees Jongenburger
parent 062d5d7811
commit 4ab5b32edf

View file

@ -24,6 +24,8 @@ then echo "Please invoke me from the root source dir, where ${BUILDSH} is."
exit 1
fi
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
for needed in sfdisk mcopy dd wget mkfs.vfat
do
if ! which $needed 2>&1 > /dev/null