Skip to content

Commit

Permalink
Finish resize RPi on first boot
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Feb 11, 2019
1 parent 9f34f0f commit d917320
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resize_rootfs/raspi
Original file line number Diff line number Diff line change
@@ -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.