#!/bin/sh set -e if [ "$1" = prereqs ]; then exit 0 fi . /usr/share/initramfs-tools/hook-functions number= suffix= eval $(printf "%s" "$COMPCACHE_SIZE" | \ sed -nre 's/^ *([1-9][0-9]*) *([%KMGT]) *$/number="\1"; suffix="\2";/p') if [ -z "$number" ] || [ -z "$suffix" ]; then exit 0 fi if have_module ramzswap; then name=ramzswap manual_add_modules ramzswap elif have_module compcache; then name=compcache manual_add_modules compcache else exit 0 fi copy_exec /sbin/swapon mkdir -p "$DESTDIR"/etc/udev/rules.d cat >"$DESTDIR"/etc/udev/rules.d/80-compcache.rules <"$DESTDIR"/scripts/init-top/compcache <>"$DESTDIR"/scripts/init-top/compcache <>"$DESTDIR"/scripts/init-top/compcache <