enable CRC32 in brcm-2.4 kernel config - no idea why it even worked without
[openwrt-10.03/.git] / toolchain / sed / sedcheck.sh
index 4d645b6ab0f7ac7a40cc75dad3d8c3ae265f5f69..de15ac2f1988069f2537fa370c4edd3368c10a74 100755 (executable)
@@ -11,11 +11,15 @@ fi;
 echo "HELLO" > .sedtest
 $SED -i -e "s/HELLO/GOODBYE/" .sedtest >/dev/null 2>&1
 
-if [ $? != 0 ] ; then
-       echo build-sed-host-binary
-else
-       echo use-sed-host-binary
-fi;
+case "$1" in
+       *)
+               if [ $? != 0 ] ; then
+                       echo build-sed-host-binary
+               else
+                       echo use-sed-host-binary
+               fi;
+       ;;
+esac
 rm -f .sedtest