diff options
Diffstat (limited to 'util-linux/swaponoff.c')
-rw-r--r-- | util-linux/swaponoff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index 4fcb239b6..8434d121c 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c | |||
@@ -24,7 +24,7 @@ static int swap_enable_disable(char *device) | |||
24 | if (st.st_blocks * 512 < st.st_size) | 24 | if (st.st_blocks * 512 < st.st_size) |
25 | bb_error_msg_and_die("swap file has holes"); | 25 | bb_error_msg_and_die("swap file has holes"); |
26 | 26 | ||
27 | if (bb_applet_name[5] == 'n') | 27 | if (applet_name[5] == 'n') |
28 | status = swapon(device, 0); | 28 | status = swapon(device, 0); |
29 | else | 29 | else |
30 | status = swapoff(device); | 30 | status = swapoff(device); |