[Lunar-commits] r19172 - brutus/trunk/nestu/modutils-wrappers

Stefan Wold ratler at lunar-linux.org
Wed Mar 8 18:40:55 UTC 2006


Author: ratler
Date: 2006-03-08 18:40:54 +0000 (Wed, 08 Mar 2006)
New Revision: 19172

Modified:
   brutus/trunk/nestu/modutils-wrappers/shared
Log:
Changes wanted by nestu. Error return value will be propagated from the actual binary to the wrapper now.

Modified: brutus/trunk/nestu/modutils-wrappers/shared
===================================================================
--- brutus/trunk/nestu/modutils-wrappers/shared	2006-03-08 18:40:12 UTC (rev 19171)
+++ brutus/trunk/nestu/modutils-wrappers/shared	2006-03-08 18:40:54 UTC (rev 19172)
@@ -13,15 +13,14 @@
 fi
 
 PREFIX=/lib/${MTYPE}
-BIN=`basename $0`
+BIN=${0##*/}
 
 for dir in sbin bin
 do
    placement=${PREFIX}/${dir}/${BIN}
    
    if [ -e ${placement} ]; then
-      ${placement} "$@" && exit 0;
-      exit 1;
+      ${placement} "$@" ; exit $?
    fi
 done
 



More information about the Lunar-commits mailing list