diff options
Diffstat (limited to 'perl-install/commands.pm')
-rw-r--r-- | perl-install/commands.pm | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/perl-install/commands.pm b/perl-install/commands.pm index 0c49dd87a..c7f75a447 100644 --- a/perl-install/commands.pm +++ b/perl-install/commands.pm @@ -172,20 +172,18 @@ sub chown_ { sub mkswap { @_ == 1 or die "mkswap <device>\n"; - - require 'swap.pm'; + require swap; swap::enable($_[0], 0); } sub swapon { @_ == 1 or die "swapon <file>\n"; - - require 'swap.pm'; + require swap; swap::swapon($_[0]); } sub swapoff { @_ == 1 or die "swapoff <file>\n"; - require 'swap.pm'; + require swap; swap::swapoff($_[0]); } |