summaryrefslogtreecommitdiff
path: root/source/installer/sources/initrd/bin/filesize
diff options
context:
space:
mode:
Diffstat (limited to 'source/installer/sources/initrd/bin/filesize')
-rwxr-xr-xsource/installer/sources/initrd/bin/filesize6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/installer/sources/initrd/bin/filesize b/source/installer/sources/initrd/bin/filesize
new file mode 100755
index 00000000..4c537eda
--- /dev/null
+++ b/source/installer/sources/initrd/bin/filesize
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# Print the size of a file, in bytes.
+#
+SIZE=`ls -l -d -G $1 | cut -b23-32`
+echo -n $SIZE