Skip to content

Commit

Permalink
Set up swap configuration. Fixes issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
FuturePilot committed Mar 18, 2015
1 parent 84fb08d commit 9c0c406
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpi2-build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ blacklist snd_soc_tas5713
blacklist snd_soc_wm8804
EOM

# Configure swap
rm $R/var/swap
# Set swap to 500 MB
sed -i 's/#CONF_SWAPSIZE=/CONF_SWAPSIZE=500/' $R/etc/dphys-swapfile

# Set up first boot scripts
cat <<EOM > $R/etc/rc.local
#!/bin/sh
Expand Down

0 comments on commit 9c0c406

Please sign in to comment.