#!/bin/sh -efu
# append 'elevator=anticipatory' to cmdline

. install2-init-functions

kernel=`readlink "$destdir"/boot/vmlinuz`
kver=`echo "$kernel" | cut -d- -f2-`

! grep -qs 'CONFIG_IOSCHED_AS=y' "$destdir"/boot/config-"$kver" || 
	sed 's/^append="/&elevator=anticipatory /' -i "$destdir"/usr/share/alterator-lilo/template/lilo.conf ||:
