summaryrefslogtreecommitdiff
path: root/debian/initramfs-tools.preinst
blob: 358229005c15ae183465de0bf325308c915d0e93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

[ -f /etc/mkinitramfs/initramfs.conf ] && . /etc/mkinitramfs/initramfs.conf
if [ -z ${RESUME} ]; then
       exit 0
else
       mkdir -p /etc/mkinitramfs/conf.d
       echo "RESUME=${RESUME}" > /etc/mkinitramfs/conf.d/resume
       sed -i -e "s/RESUME=.*/#RESUME=/" /etc/mkinitramfs/initramfs.conf
fi

#DEBHELPER#