diff --git a/rootdir/bin/init.kernel.post_boot.sh b/rootdir/bin/init.kernel.post_boot.sh index f1a8010..a3bbcd4 100644 --- a/rootdir/bin/init.kernel.post_boot.sh +++ b/rootdir/bin/init.kernel.post_boot.sh @@ -100,7 +100,10 @@ function configure_read_ahead_kb_values() { echo $ra_kb > /sys/block/mmcblk0rpmb/bdi/read_ahead_kb fi for dm in $dmpts; do - echo $ra_kb > $dm + if [ `cat $(dirname $dm)/../removable` -eq 0 ]; then + echo $ra_kb > $dm + fi + done }