switch-to-configuration.pl: Fix parsing of comments in fstab, hash-tokens inside strings are not comments.

This commit is contained in:
Rickard Nilsson 2013-01-25 15:54:45 +01:00
parent e32e501435
commit 8fe8ab7097

View File

@ -68,7 +68,7 @@ sub parseFstab {
my ($fss, $swaps);
foreach my $line (read_file($filename, err_mode => 'quiet')) {
chomp $line;
$line =~ s/#.*//;
$line =~ s/^\s*#.*//;
next if $line =~ /^\s*$/;
my @xs = split / /, $line;
if ($xs[2] eq "swap") {