]> git.ozlabs.org Git - petitboot/commitdiff
pb-console: Always add plugins directory to PATH
authorJeremy Kerr <jk@ozlabs.org>
Wed, 2 Sep 2015 15:08:26 +0000 (23:08 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 2 Sep 2015 15:08:26 +0000 (23:08 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
utils/pb-console

index 5f8ffa6f3ef130ec8ff52d3a69e9daaf094c34c5..c6def47a74d010a1bfd7bd7111ca57717c5df0e5 100644 (file)
@@ -107,8 +107,9 @@ esac
 # we may have been run from udev - ensure we have a sensible PATH
 if [ -z "$PATH" ]
 then
 # we may have been run from udev - ensure we have a sensible PATH
 if [ -z "$PATH" ]
 then
-       PATH=/var/lib/pb-plugins/bin:/usr/bin:/usr/sbin:/bin:/sbin
+       PATH=/usr/bin:/usr/sbin:/bin:/sbin
 fi
 fi
+PATH=/var/lib/pb-plugins/bin:$PATH
 export PATH
 
 verbose_opt=
 export PATH
 
 verbose_opt=