Permalink
Browse files

Finish resize RPi on first boot

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 11, 2019
1 parent 342b148 commit 7d95c146fc497428a86297fcb91af2ce29b692c8
Showing with 4 additions and 0 deletions.
  1. +4 −0 init.sh
@@ -306,12 +306,16 @@ service.rpi-monitor=0
fi

reboot=0

# Only do this for anything LESS THAN 1.5 (that is to say, 1.4.1, etc).
if (( $(awk 'BEGIN {print ("'$ver'" < "'1.5'")}') )); then
# Raspberry Pi
if (( $platform >= 0 )) && (( $platform <= 9 )); then
/usr/bin/raspi-config --expand-rootfs > /dev/null 2>&1
reboot=1
fi
echo "Done."
fi

# Disable the initial admin account
if [[ -d /home/$username ]] && [[ -d /home/nemsadmin ]]; then

0 comments on commit 7d95c14

Please sign in to comment.