also sprach maximilian attems <maks@sternwelten.at> [2006.01.24.1445 +0100]: > where can i find your hook files? > please attach them to this bug report, would be cool to clean that up. > > couldn't reproduce with simple > sudo sh -c "> /usr/share/initramfs-tools/hooks/suspend2-2-6-14" > sudo mkinitramfs -o /tmp/foo The problem still exists, and it's about . in the filename. Attached. I am actually in the plane so I cannot check the status of the bug... -- Please do not send copies of list mail to me; I read the list! .''`. martin f. krafft <madduck@debian.org> : :' : proud Debian developer and author: http://debiansystem.info `. `'` `- Debian - when you have better things to do than fixing a system
#!/bin/sh -e
#
# kernel-patch-suspend2 mkinitramfs hook
#
# ensures suspend2 resuming on systems with modular kernels.
#
# (c) 2005 martin f. krafft <madduck@debian.org>
# distributed under the terms of the Artistic Licence.
#
test -d $BASEDIR/usr/share/kernel-image-${version} && \
KPKGNAME=kernel-image-${version}
HELPERS=/usr/share/${KPKGNAME:=linux-image-${version}}/helper-functions
test -r $HELPERS && . $HELPERS || exit 0
# This is a kludge until mkinitramfs has per-version script support (#344641):
check_version $version _
PREREQ=""
prereqs()
{
echo $PREREQ
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
check_suspend2_enabled $version
for i in $(get_module_list); do
manual_add_modules $i
done
configure_resume2 && echo $resume2 > $DESTDIR/conf/resume2
info suspend2 support successfully installed into the
info "initial ramdisk (initramfs) of kernel version $version."
exit 0
Attachment:
signature.asc
Description: Digital signature (GPG/PGP)