Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149506
b: refs/heads/master
c: fe233cb
h: refs/heads/master
v: v3
  • Loading branch information
Frans Pop authored and Sam Ravnborg committed Jun 9, 2009
1 parent fae6140 commit 0379d23
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c72c75db86cf9f53c4c0df6724c0cf06db017652
refs/heads/master: fe233cb6bfd36fcf5a36bbde7fa116d8ab5f4301
12 changes: 8 additions & 4 deletions trunk/scripts/package/builddeb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
# Simple script to generate a deb package for a Linux kernel. All the
# complexity of what to do with a kernel after it is installed or removed
# is left to other scripts and packages: they can install scripts in the
# /etc/kernel/{pre,post}{inst,rm}.d/ directories that will be called on
# package install and removal.
# /etc/kernel/{pre,post}{inst,rm}.d/ directories (or an alternative location
# specified in KDEB_HOOKDIR) that will be called on package install and
# removal.

set -e

Expand Down Expand Up @@ -73,8 +74,11 @@ if grep -q '^CONFIG_MODULES=y' .config ; then
fi

# Install the maintainer scripts
# Note: hook scripts under /etc/kernel are also executed by official Debian
# kernel packages, as well as kernel packages built using make-kpkg
debhookdir=${KDEB_HOOKDIR:-/etc/kernel}
for script in postinst postrm preinst prerm ; do
mkdir -p "$tmpdir/etc/kernel/$script.d"
mkdir -p "$tmpdir$debhookdir/$script.d"
cat <<EOF > "$tmpdir/DEBIAN/$script"
#!/bin/sh
Expand All @@ -83,7 +87,7 @@ set -e
# Pass maintainer script parameters to hook scripts
export DEB_MAINT_PARAMS="\$@"
test -d /etc/kernel/$script.d && run-parts --arg="$version" /etc/kernel/$script.d
test -d $debhookdir/$script.d && run-parts --arg="$version" $debhookdir/$script.d
exit 0
EOF
chmod 755 "$tmpdir/DEBIAN/$script"
Expand Down

0 comments on commit 0379d23

Please sign in to comment.