[backfire] targets: rename "files-2.6.x" directories to "files"
[openwrt/svn-archive/archive.git] / target / linux / xburst / files / arch / mips / boot / tools / filesize
diff --git a/target/linux/xburst/files/arch/mips/boot/tools/filesize b/target/linux/xburst/files/arch/mips/boot/tools/filesize
new file mode 100644 (file)
index 0000000..2142ad5
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+HOSTNAME=`uname`
+if [ "$HOSTNAME" = "Linux" ]; then
+echo `ls -l $1 | awk '{print $5}'`
+else
+echo `ls -l $1 | awk '{print $6}'`
+fi