ntpd: set offset to 0.0 in "usync" event
[oweals/busybox.git] / applets / usage_compressed
index 9ddf16d389887b9cc0656c1567478e2efe50ec45..af66bc5dc2fd222ef4bc4ba0adff6cf40a6d25f0 100755 (executable)
@@ -9,6 +9,13 @@ test -x "$loc/usage" || exit 1
 test "$SED" || SED=sed
 test "$DD" || DD=dd
 
+# Some people were bitten by their system lacking a (proper) od
+od -v -t x1 </dev/null >/dev/null
+if test $? != 0; then
+       echo 'od tool is not installed or cannot accept "-v -t x1" options'
+       exit 1
+fi
+
 exec >"$target.$$"
 
 echo '#define UNPACKED_USAGE "" \'
@@ -40,8 +47,4 @@ echo '#define PACKED_USAGE \'
        -e 's/$/ \\/'
 echo ''
 
-if cmp -s "$target.$$" "$target" 2>/dev/null; then
-    rm -- "$target.$$"
-else
-    mv -- "$target.$$" "$target"
-fi
+mv -- "$target.$$" "$target"