diff --git a/expect_uml b/expect_uml index f3c758a..dce5300 100755 --- a/expect_uml +++ b/expect_uml @@ -33,6 +33,27 @@ if ( !$ARGV[0] ) { } +BEGIN { + + my $fhs = grep(/\/usr\/share\/perl5/,@INC); + + if ($fhs == 0) { + unshift(@INC,"/usr/share/perl5"); + } + + + my $sbin = grep(/\/sbin/,$ENV{'PATH'}); + if ($sbin == 0) { + $ENV{'PATH'} = "/sbin:" . $ENV{'PATH'}; + } + + $sbin = grep(/\/usr\/sbin/,$ENV{'PATH'}); + if ($sbin == 0) { + $ENV{'PATH'} = "/usr/sbin:" . $ENV{'PATH'}; + } + +} + my $arguments = "$ARGV[0] $ARGV[1] $ARGV[2]"; my $mount_point = "$ARGV[3]"; my $preserve_ownership = "$ARGV[4]"; diff --git a/gbootroot b/gbootroot index 0b3e68b..32dcb70 100755 --- a/gbootroot +++ b/gbootroot @@ -63,6 +63,10 @@ # Xavier Bestel # Erik Andersen # +# Expect Modules +# Austin Schutz +# Roland Giersig +# # Perl # Larry Wall #