Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tarball=$(echo ${SRC_DIR}/targets/${target}/\
- core-image-${img}*-${MACHINE}.tar*)
- if [ ! -r "${tarball}" ] ; then
- echo "Error: Can't read rootfs tarball \"${tarball}\"" >&2
- exit 1
- fi
- rootfs_path="${inst_path}/rootfs-${img}"
- if [ -e ${rootfs_path} ] ; then
- echo "Error: installation directory \"${rootfs_path}\" already exists" >&2
- exit 1
- fi
- ${DRY_RUN} mkdir -p ${rootfs_path} || exit 1
- echo -e "*** Installing ${tarball}\n into ${rootfs_path}" >&2
- ${DRY_RUN} sudo tar xpf ${tarball} -C ${rootfs_path}
- done
- fi
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement