# HG changeset patch # User Pascal Bellard # Date 1234805201 0 # Node ID deb719ede74fe389f57bc0907b68bd6879215b70 # Parent 328bf7e4f920223f245e1189dc73c5c25e58ed9d Update swap in fstab diff -r 328bf7e4f920 -r deb719ede74f etc/init.d/bootopts.sh --- a/etc/init.d/bootopts.sh Sun Feb 15 11:55:47 2009 +0100 +++ b/etc/init.d/bootopts.sh Mon Feb 16 17:26:41 2009 +0000 @@ -3,6 +3,14 @@ # . /etc/init.d/rc.functions +# Update fstab for swapon/swapoff +add_swap_in_fstab() +{ + grep -q "$1 " /etc/fstab || cat >> /etc/fstab <