Skip to content

Commit

Permalink
Merge pull request #225 from lncm/nolim1t-patch-swap
Browse files Browse the repository at this point in the history
Fix up swap so its enabled at boot
  • Loading branch information
nolim1t committed May 31, 2019
2 parents 3d7323a + c25fd62 commit 65fbadb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usr/local/sbin/lncm-usb
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ setup_volatile() {
swapon /media/volatile/volatile/swap -p 100 && \
echo '/media/volatile/volatile/swap none swap sw,pri=100 0 0' >> /etc/fstab
fi
# Enable swap
echo "Enabling swap at runlevel so it starts up"
cd /etc/runlevels/boot && \
/bin/ln -s /etc/init.d/swap swap
else
echo 'Warning: "volatile" usb does not seem to be ext4 formatted'
echo "/dev/${MEDIUM} will not be added to /etc/fstab"
Expand Down

0 comments on commit 65fbadb

Please sign in to comment.