diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2008-11-03 19:14:00 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2008-11-03 19:14:00 +0100 |
commit | bebb376e62f94fec5caa1abb6141a6e6728ae95f (patch) | |
tree | 2e1cefeb324a5d0b30fe90c3619098098052e130 /meta-moblin/packages/sreadahead/files | |
parent | 7b5d03d08e737dd3637072f60259af5b093b7f70 (diff) | |
download | openembedded-core-bebb376e62f94fec5caa1abb6141a6e6728ae95f.tar.gz openembedded-core-bebb376e62f94fec5caa1abb6141a6e6728ae95f.tar.bz2 openembedded-core-bebb376e62f94fec5caa1abb6141a6e6728ae95f.zip |
sreadahead: Initial commit
Super readahead is an improved readahead tool.
Diffstat (limited to 'meta-moblin/packages/sreadahead/files')
-rwxr-xr-x | meta-moblin/packages/sreadahead/files/sreadahead-generate.sh | 21 | ||||
-rwxr-xr-x | meta-moblin/packages/sreadahead/files/sreadahead.sh | 7 |
2 files changed, 28 insertions, 0 deletions
diff --git a/meta-moblin/packages/sreadahead/files/sreadahead-generate.sh b/meta-moblin/packages/sreadahead/files/sreadahead-generate.sh new file mode 100755 index 0000000000..626d7ccbe6 --- /dev/null +++ b/meta-moblin/packages/sreadahead/files/sreadahead-generate.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# + +if [ -e /etc/readahead.packed ]; then + exit 0 +fi + +if [ -e /etc/readahead.packed.first ]; then + mv /etc/readahead.packed.first /etc/readahead.packed.second + exit 0 +fi + +# That's our second boot, we can generate the sreadahead file list +if [ -e /etc/readahead.packed.second ]; then + rm -f /etc/readahead.packed.second + find / -type f > filelist.txt + + /sbin/generate_filelist filelist.txt + rm filelist.txt + mv readahead.packed /etc/ +fi diff --git a/meta-moblin/packages/sreadahead/files/sreadahead.sh b/meta-moblin/packages/sreadahead/files/sreadahead.sh new file mode 100755 index 0000000000..c7378284b2 --- /dev/null +++ b/meta-moblin/packages/sreadahead/files/sreadahead.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# +# Start sreadahead, of the config file exists + +if [ -e /etc/readahead.packed ]; then + /sbin/sreadahead +fi |