Whamcloud - gitweb
Files needed by OS X package
[fs/lustre-release.git] / build / osxpack / postflight
diff --git a/build/osxpack/postflight b/build/osxpack/postflight
new file mode 100755 (executable)
index 0000000..15c1bc6
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+/usr/sbin/nvram boot-args="debug=0xe zsize=256"
+
+# Delete cache files
+if [ -f /System/Library/Extensions.kextcache ]; then
+       rm -f /System/Library/Extensions.kextcache
+fi
+
+if [ -d /System/Library/Caches/com.apple.kernelcaches ]; then
+       rm -rf /System/Library/Caches/com.apple.kernelcaches
+fi