Skip to content

Commit

Permalink
narcissus: add the same OPKG and PATH exports to all shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
koenkooi committed Feb 3, 2010
1 parent 61372f7 commit a46a8ea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/assemble-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ TARGET_DIR="${WORKDIR}/deploy/${MACHINE}/${IMAGENAME}"
OPKG_CONFDIR_TARGET="${TARGET_DIR}/etc/opkg"
export D="${TARGET_DIR}"
export OPKG_OFFLINE_ROOT="${TARGET_DIR}"
export OFFLINE_ROOT="${TARGET_DIR}"
export IPKG_OFFLINE_ROOT="${TARGET_DIR}"
export PATH=${WORKDIR}/bin:${PATH}

if ! [ -e ${TARGET_DIR}/etc/opkg.conf ] ; then
Expand Down
3 changes: 3 additions & 0 deletions scripts/configure-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ TARGET_DIR="${PWD}/deploy/${MACHINE}/${IMAGENAME}"
OPKG_CONFDIR_TARGET="${TARGET_DIR}/etc/opkg"
export D="${TARGET_DIR}"
export OPKG_OFFLINE_ROOT="${TARGET_DIR}"
export OFFLINE_ROOT="${TARGET_DIR}"
export IPKG_OFFLINE_ROOT="${TARGET_DIR}"
export PATH=${WORKDIR}/bin:${PATH}

if [ -e ${TARGET_DIR} ] ; then
echo "Stale directory found, removing it"
Expand Down
6 changes: 6 additions & 0 deletions scripts/install-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ TARGET_DIR="${PWD}/deploy/${MACHINE}/${IMAGENAME}"
OPKG_CONFDIR_TARGET="${TARGET_DIR}/etc/opkg"
PACKAGELISTFILE="${PWD}/deploy/${MACHINE}/${IMAGENAME}-packages.txt"

export D="${TARGET_DIR}"
export OPKG_OFFLINE_ROOT="${TARGET_DIR}"
export OFFLINE_ROOT="${TARGET_DIR}"
export IPKG_OFFLINE_ROOT="${TARGET_DIR}"
export PATH=${WORKDIR}/bin:${PATH}

if ! [ -e ${TARGET_DIR}/etc/opkg.conf ] ; then
print "Initial filesystem not found, something went wrong in the configure step!"
exit 0
Expand Down

0 comments on commit a46a8ea

Please sign in to comment.