X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fadd_swap_mount.sh;h=6dacb7707c715bdf97590726280bb5540bb036be;hb=4449adcb354c8617994a11ee1d62f1f642764fa5;hp=f20c5cb6c0bb2f96d11337f902645cf9f3f429bc;hpb=328a5c53f1329b16ad86f7bcdd8de3d843637419;p=feisty_meow.git diff --git a/scripts/system/add_swap_mount.sh b/scripts/system/add_swap_mount.sh index f20c5cb6..6dacb770 100644 --- a/scripts/system/add_swap_mount.sh +++ b/scripts/system/add_swap_mount.sh @@ -9,16 +9,16 @@ source "$WORKDIR/../core/launch_feisty_meow.sh" #hmmm: why all the hard-coded paths below? /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 -check_result "creating swap file" +test_or_fail "creating swap file" /bin/chmod 600 /var/swap.1 -check_result "setting swap file permissions" +test_or_fail "setting swap file permissions" /sbin/mkswap /var/swap.1 -check_result "formatting swap file as swap partition" +test_or_fail "formatting swap file as swap partition" /sbin/swapon /var/swap.1 -check_result "enabling new swap partition" +test_or_fail "enabling new swap partition" free