/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to initramfs-tools-hook

* network-hooks.d/bridge: Bug fix - take up (and down) the bound
                          interfaces, and sleep to wait for the bridge
                          to come up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# This script will be run by 'mkinitramfs' when it creates the image.
4
4
# Its job is to decide which files to install, then install them into
5
5
# the staging area, where the initramfs is being created.  This
6
 
# happens when a new 'linux-image' package is installed, or when an
 
6
# happens when a new 'linux-image' package is installed, or when the
7
7
# administrator runs 'update-initramfs' by hand to update an initramfs
8
8
# image.
9
9
 
107
107
    esac
108
108
done
109
109
 
110
 
# Get DEVICE from initramfs.conf and other files
111
 
. /etc/initramfs-tools/initramfs.conf
112
 
for conf in /etc/initramfs-tools/conf.d/*; do
113
 
    if [ -n `basename \"$conf\" | grep '^[[:alnum:]][[:alnum:]\._-]*$' \
114
 
        | grep -v '\.dpkg-.*$'` ]; then
115
 
        [ -f ${conf} ] && . ${conf}
116
 
    fi
117
 
done
118
 
export DEVICE
119
 
 
120
110
# Copy network hooks
121
111
for hook in /etc/mandos/network-hooks.d/*; do
122
112
    case "`basename \"$hook\"`" in
147
137
    fi
148
138
done
149
139
 
150
 
# GPGME needs GnuPG
151
 
libgpgme11_version="`dpkg-query --showformat='${Version}' --show libgpgme11`"
152
 
if dpkg --compare-versions "$libgpgme11_version" ge 1.4.1-0.1; then
153
 
    gpg=/usr/bin/gpg2
154
 
else
155
 
    gpg=/usr/bin/gpg
156
 
fi
157
 
if [ ! -e "${DESTDIR}$gpg" ]; then
158
 
    copy_exec "$gpg"
159
 
fi
160
 
unset gpg
161
 
unset libgpgme11_version
 
140
# GPGME needs /usr/bin/gpg
 
141
if [ ! -e "${DESTDIR}/usr/bin/gpg" \
 
142
    -a -n "`ls \"${DESTDIR}\"/usr/lib/libgpgme.so* \
 
143
                2>/dev/null`" ]; then
 
144
    copy_exec /usr/bin/gpg
 
145
fi
162
146
 
163
147
# Config files
164
148
for file in /etc/mandos/plugin-runner.conf; do