name="swaplate"
start_cmd='/sbin/swapon -aLq'
stop_cmd='/sbin/swapoff -aq'
stop_cmd='/sbin/swapoff -aLq'
load_rc_config swap
run_rc_command "$1"
If the
.Fl L
option is specified,
swap devices with the
only swap devices with the
.Dq late
option will be added as well as ones with no option.
option will be added.
.Fl q
option is used,
option will be removed as well as ones with no option.
option will be removed.
continue;
if (strstr(fsp->fs_mntops, "noauto") != NULL)
if (which_prog != SWAPOFF &&
if (!strstr(fsp->fs_mntops, "late") ==
strstr(fsp->fs_mntops, "late") &&
(late == 1))
late == 0)
swfile = swap_on_off(fsp->fs_spec, 1,
fsp->fs_mntops);