image_builder: little syntax fix

This commit is contained in:
Artem Smirnov
2018-08-21 21:45:59 +03:00
parent 8379f8ac6a
commit 5590e64e0a
3 changed files with 8 additions and 10 deletions

View File

@@ -35,10 +35,10 @@ if [[ -z $1 ]]; then
echo "================================================================================"
echo_bold "Automatic Image file resizer"
echo_bold "Description: This script shrink your image to 10MiB free space"
echo -e "if you didn't set FREE_SPACE in MiB (see usage below)."
echo_bold "if you didn't set FREE_SPACE in MiB (see usage below)."
echo_bold "Authors: Artem Smirnov @urpylka, SirLagz"
echo
echo_bold "Usage: ./autosizer.sh PATH_TO_IMAGE FREE_SPACE"
echo_bold "Usage: ./autosizer.sh IMAGE_PATH FREE_SPACE"
echo
echo_bold "Requirements: parted, losetup, e2fsck, resize2fs, bc, truncate"
echo "================================================================================"

View File

@@ -92,7 +92,7 @@ resize_fs() {
}
execute() {
# TEMPLATE: execute <IMAGE_PATH> <$EXECUTE_FILE> <...>
# TEMPLATE: execute <IMAGE_PATH> <EXECUTE_FILE> <...>
echo_stamp "Mount loop-image: $1"
local DEV_IMAGE=$(losetup -Pf $1 --show)

View File

@@ -54,16 +54,14 @@ echo_stamp "#2 Adding mjpg-streamer at /home/pi"
# https://github.com/jacksonliam/mjpg-streamer
git clone https://github.com/jacksonliam/mjpg-streamer.git /home/pi/mjpg-streamer \
&& cd /home/pi/mjpg-streamer/mjpg-streamer-experimental \
&& make \
&& make install \
&& chown -Rf pi:pi /home/pi/mjpg-streamer
&& cd /home/pi/mjpg-streamer/mjpg-streamer-experimental \
&& make \
&& make install \
&& chown -Rf pi:pi /home/pi/mjpg-streamer
echo_stamp "Add .vimrc"
# vim settings
echo "set mouse-=a
syntax on
" > /home/pi/.vimrc
echo_stamp "End of network installation"
echo_stamp "#3 End of network installation"