ybin succeeds but returns error code

Anton Blanchard anton at samba.org
Fri Feb 6 11:19:26 EST 2009


Hi,

On a System p box, ybin returns an error even though it succeeds:

# ybin 
# echo $?
1

The patch below fixes it:

# ybin 
# echo $?
0

Signed-off-by: Anton Blanchard <anton at samba.org>
---

diff --git a/ybin/ybin b/ybin/ybin
index 379b94b..cf58db9 100755
--- a/ybin/ybin
+++ b/ybin/ybin
@@ -1152,6 +1152,7 @@ raw_install()
     fi
     sync ; sync
     [ "$VERBOSE" = 1 ] && echo "$PRG: Installation successful"
+    return 0
 }
 
 ## make sure the first stage ofboot generator is compatible.



More information about the Yaboot-devel mailing list