From c8bdea24a75b0b4647cfc21a554a53088374608e Mon Sep 17 00:00:00 2001 From: malc Date: Sat, 1 Aug 2009 00:21:10 +0400 Subject: [PATCH] Search for binary in current directory and in build/ --- apc-linux.run | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apc-linux.run b/apc-linux.run index c50ae06..3e43a8f 100755 --- a/apc-linux.run +++ b/apc-linux.run @@ -20,9 +20,15 @@ case `uname -r | cut -d. -f1,2` in *) echo "unknown kernel version"; exit 1;; esac +apc=./apc test -e "build/itc.$kms" && kmod=build/itc.$kms test -z "$kmod" && test -e "mod/itc.$kms" && kmod=mod/itc.$kms +test -e "$apc" || apc="build/apc" +test -e "$apc" || { + echo "APC is not found in usual places" + exit 1 +} test -z "$kmod" && { echo "Kernel module does not exist" @@ -50,5 +56,5 @@ if ! test -r $dev; then su -c "chmod +r $dev" fi -./apc -d $dev & disown +$apc -d $dev & disown echo "apc should be running now" -- 2.11.4.GIT