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

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


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

Modified:
   brutus/trunk/nestu/modutils-wrappers/module-init-tools
   brutus/trunk/nestu/modutils-wrappers/modutils
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/module-init-tools
===================================================================
--- brutus/trunk/nestu/modutils-wrappers/module-init-tools	2006-03-08 17:36:00 UTC (rev 19170)
+++ brutus/trunk/nestu/modutils-wrappers/module-init-tools	2006-03-08 18:40:12 UTC (rev 19171)
@@ -10,15 +10,14 @@
 fi
 
 PREFIX=/lib/module-init-tools
-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
 

Modified: brutus/trunk/nestu/modutils-wrappers/modutils
===================================================================
--- brutus/trunk/nestu/modutils-wrappers/modutils	2006-03-08 17:36:00 UTC (rev 19170)
+++ brutus/trunk/nestu/modutils-wrappers/modutils	2006-03-08 18:40:12 UTC (rev 19171)
@@ -10,15 +10,14 @@
 fi
 
 PREFIX=/lib/modutils
-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