X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=components%2F3020-swap;h=345b9a09814ef22deb153bdf2454b39d6eaf2cee;hb=773bef668749c32f1b01d6fa3e61a251602016f5;hp=a1bcdbec2fc5ad4cb23af56a0bad4e5a7a4d8e0f;hpb=983d4783b0efa954c2322b8c70a4908e4da6bf99;p=live-boot-grml.git diff --git a/components/3020-swap b/components/3020-swap index a1bcdbe..345b9a0 100755 --- a/components/3020-swap +++ b/components/3020-swap @@ -48,15 +48,15 @@ Swap () done # Remove all auto swap entries - if grep -qs "swap swap" /root/etc/fstab.d/swap + if grep -qs "swap swap" /root/etc/fstab then - grep -v "swap swap" /root/etc/fstab.d/swap > /root/etc/fstab.d/swap.tmp - mv /root/etc/fstab.d/swap.tmp /root/etc/fstab.d/swap + grep -v "swap swap" /root/etc/fstab > /root/etc/fstab.tmp + mv /root/etc/fstab.tmp /root/etc/fstab fi # Add new swap entries for _DEVICE in ${_SWAP_DEVICES} do - echo "${_DEVICE} swap swap defaults 0 0" >> /root/etc/fstab.d/swap + echo "${_DEVICE} swap swap defaults 0 0" >> /root/etc/fstab done }