From f166fe2b62d781109e3a88736db96613af8c71d9 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 14 Apr 2015 16:23:36 +1000 Subject: utils/pb-console: establish PATH before running pb-config Signed-off-by: Jeremy Kerr --- utils/pb-console | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'utils') diff --git a/utils/pb-console b/utils/pb-console index 64bf77f..36b9c03 100644 --- a/utils/pb-console +++ b/utils/pb-console @@ -104,6 +104,13 @@ case "$(tty)" in ;; esac +# we may have been run from udev - ensure we have a sensible PATH +if [ -z "$PATH" ] +then + PATH=/usr/bin:/usr/sbin:/bin:/sbin +fi +export PATH + verbose_opt= if $pb_config debug | grep -q enabled then -- cgit v1.2.1