summaryrefslogtreecommitdiffstats
path: root/core/modules/bwlp-stage4-tweaks
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/bwlp-stage4-tweaks')
-rwxr-xr-xcore/modules/bwlp-stage4-tweaks/data/opt/openslx/bin/loadfscache16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/modules/bwlp-stage4-tweaks/data/opt/openslx/bin/loadfscache b/core/modules/bwlp-stage4-tweaks/data/opt/openslx/bin/loadfscache
new file mode 100755
index 00000000..c2f1f0c9
--- /dev/null
+++ b/core/modules/bwlp-stage4-tweaks/data/opt/openslx/bin/loadfscache
@@ -0,0 +1,16 @@
+#!/bin/ash
+
+if ! [ -e "$1" ]; then
+ echo "Invalid file $1"
+ exit 1
+fi
+
+file="$1"
+
+cat "$file" &> /dev/null
+
+for i in $( ldd "$file" | awk '$2 == "=>" {print $3}' ); do
+ cat "$i" &> /dev/null
+done
+
+exit 0