Module: xenomai-2.5 Branch: refs/tags/v2.2 Commit: 52fe6b600c3de6935493e78631c49d1f92ccef84 URL: http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=52fe6b600c3de6935493e78631c49d1f92ccef84
Author: Philippe Gerum <r...@xenomai.org> Date: Mon Jul 17 16:50:30 2006 +0000 Fix sudo test --- scripts/xeno-load.in | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/scripts/xeno-load.in b/scripts/xeno-load.in index 74e5944..4ca52fb 100644 --- a/scripts/xeno-load.in +++ b/scripts/xeno-load.in @@ -94,8 +94,10 @@ target_mesg=`echo $stanza | cut -s -d: -f4` test $verbose = 1 && echo "Running $target_name from $run_info_file" -if test -n "`which sudo`"; then +if test -n "`which sudo 2>/dev/null`"; then sudo=`which sudo` +elif test -n "`type -t sudo 2>/dev/null`"; then + sudo=sudo fi if test \! "x$target_mesg" = x; then _______________________________________________ Xenomai-git mailing list Xenomai-git@gna.org https://mail.gna.org/listinfo/xenomai-git