Fix spacing
This commit is contained in:
parent
ba76ae0063
commit
75dafa2801
|
@ -63,13 +63,14 @@ if [ "$should_skip_autoexpand" = false ]; then
|
||||||
if [ `md5sum $mountdir/etc/rc.local | cut -d ' ' -f 1` != "a27a4d8192ea6ba713d2ddd15a55b1df" ]; then
|
if [ `md5sum $mountdir/etc/rc.local | cut -d ' ' -f 1` != "a27a4d8192ea6ba713d2ddd15a55b1df" ]; then
|
||||||
echo Creating new /etc/rc.local
|
echo Creating new /etc/rc.local
|
||||||
mv $mountdir/etc/rc.local $mountdir/etc/rc.local.bak
|
mv $mountdir/etc/rc.local $mountdir/etc/rc.local.bak
|
||||||
#Do not touch the following 6 lines including EOF. The md5sum check above depends on having the extact same bytes.
|
###Do not touch the following 6 lines including EOF###
|
||||||
cat <<\EOF > $mountdir/etc/rc.local
|
cat <<\EOF > $mountdir/etc/rc.local
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
/usr/bin/raspi-config --expand-rootfs
|
/usr/bin/raspi-config --expand-rootfs
|
||||||
rm -f /etc/rc.local; cp -f /etc/rc.local.bak /etc/rc.local; reboot
|
rm -f /etc/rc.local; cp -f /etc/rc.local.bak /etc/rc.local; reboot
|
||||||
exit 0
|
exit 0
|
||||||
EOF
|
EOF
|
||||||
|
###End no touch zone###
|
||||||
chmod +x $mountdir/etc/rc.local
|
chmod +x $mountdir/etc/rc.local
|
||||||
fi
|
fi
|
||||||
umount $mountdir
|
umount $mountdir
|
||||||
|
|
Loading…
Reference in New Issue