View | Details | Raw Unified | Return to bug 187081
Collapse All | Expand All

(-)etc/rc.d/swaplate (-1 / +1 lines)
Lines 11-17 Link Here
11
11
12
name="swaplate"
12
name="swaplate"
13
start_cmd='/sbin/swapon -aLq'
13
start_cmd='/sbin/swapon -aLq'
14
stop_cmd='/sbin/swapoff -aq'
14
stop_cmd='/sbin/swapoff -aLq'
15
15
16
load_rc_config swap
16
load_rc_config swap
17
run_rc_command "$1"
17
run_rc_command "$1"
(-)sbin/swapon/swapon.8 (-4 / +4 lines)
Lines 78-86 Link Here
78
If the
78
If the
79
.Fl L
79
.Fl L
80
option is specified,
80
option is specified,
81
swap devices with the
81
only swap devices with the
82
.Dq late
82
.Dq late
83
option will be added as well as ones with no option.
83
option will be added.
84
If the
84
If the
85
.Fl q
85
.Fl q
86
option is used,
86
option is used,
Lines 102-110 Link Here
102
If the
102
If the
103
.Fl L
103
.Fl L
104
option is specified,
104
option is specified,
105
swap devices with the
105
only swap devices with the
106
.Dq late
106
.Dq late
107
option will be removed as well as ones with no option.
107
option will be removed.
108
If the
108
If the
109
.Fl q
109
.Fl q
110
option is used,
110
option is used,
(-)sbin/swapon/swapon.c (-3 / +2 lines)
Lines 172-180 Link Here
172
					continue;
172
					continue;
173
				if (strstr(fsp->fs_mntops, "noauto") != NULL)
173
				if (strstr(fsp->fs_mntops, "noauto") != NULL)
174
					continue;
174
					continue;
175
				if (which_prog != SWAPOFF &&
175
				if (!strstr(fsp->fs_mntops, "late") ==
176
				    strstr(fsp->fs_mntops, "late") &&
176
				    (late == 1))
177
				    late == 0)
178
					continue;
177
					continue;
179
				swfile = swap_on_off(fsp->fs_spec, 1,
178
				swfile = swap_on_off(fsp->fs_spec, 1,
180
				    fsp->fs_mntops);
179
				    fsp->fs_mntops);

Return to bug 187081