Merge pull request #7 from carlfj/fix-indents-for-md5sum

New indents broke rc.local md5sum, startup script
This commit is contained in:
Drew Bonasera 2016-08-17 21:22:06 -04:00 committed by GitHub
commit ba76ae0063
1 changed files with 5 additions and 4 deletions

View File

@ -63,6 +63,7 @@ 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.
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