Permalink
Browse files

Finish resize RPi on first boot

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 11, 2019
1 parent 9f34f0f commit d917320039cbaa24d7172f8bc83137e32cf6ff01
Showing with 3 additions and 0 deletions.
  1. +3 −0 resize_rootfs/raspi
@@ -1,8 +1,11 @@
#!/bin/bash
# Resize Raspberry Pi on first boot
platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)

if (( $platform >= 0 )) && (( $platform <= 9 )); then
/usr/bin/raspi-config --expand-rootfs > /dev/null 2>&1
fi

/bin/sed -i~ '/\/root\/nems\/nems-admin\/resize_rootfs\/raspi/d' /etc/rc.local

reboot

0 comments on commit d917320

Please sign in to comment.