10.09.2016 Views

Hacking_and_Penetration_Testing_with_Low_Power_Devices

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

54 CHAPTER 3 Installing a base operating system<br />

fi<br />

echo "Transfer of data is Complete, now syncing\<br />

data to disk..."<br />

sync<br />

sync<br />

echo "———————————————————————————"<br />

# large number of copy statements <strong>and</strong> other lines to\<br />

create config files<br />

# for the Beagles removed here<br />

cd ${TEMPDIR}/disk/<br />

sync # flush the buffers so everything is written to\<br />

microSD card<br />

sync<br />

cd "${DIR}/"<br />

umount ${TEMPDIR}/disk jj true # unmount to prevent\<br />

modification<br />

echo "Finished populating rootfs Partition"<br />

echo "———————————————————————————"<br />

}<br />

echo "setup_sdcard.sh script complete"<br />

if [ -f "${DIR}/user_password.list" ] ; then<br />

echo "———————————————————————————"<br />

echo "The default user:password for this image:"<br />

cat "${DIR}/user_password.list"<br />

echo "———————————————————————————"<br />

fi<br />

if [ "${build_img_file}" ] ; then<br />

echo "Image file: ${media}"<br />

echo "Compress via: xz -z -7 -v -k ${media}"<br />

echo "———————————————————————————"<br />

fi

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!