Browse Source

Added /sbin and /usr/sbin in case non-root users don't have this path.

master
freesource 23 years ago
parent
commit
8994d775f7
  1. 10
      gbootroot

10
gbootroot

@ -89,6 +89,16 @@ BEGIN {
unshift(@INC,"/usr/share/perl5"); unshift(@INC,"/usr/share/perl5");
} }
my $sbin = grep(/\/usr\/sbin/,$ENV{'PATH'});
if ($sbin == 0) {
$ENV{'PATH'} = "/usr/sbin:" . $ENV{'PATH'};
}
$sbin = grep(/\/sbin/,$ENV{'PATH'});
if ($sbin == 0) {
$ENV{'PATH'} = "/sbin:" . $ENV{'PATH'};
}
} }

Loading…
Cancel
Save