diff options
author | Harald Hoyer <harald@redhat.com> | 2013-04-30 18:01:47 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-05-06 16:19:02 +0200 |
commit | 8f51399e75e5d0d0741ecb18c549a57840bd1cc3 (patch) | |
tree | 4212a43fb49a2ca03c94ad9add1cb771c6b6f5d4 /src/kernel-install/50-depmod.install | |
parent | c95686c6ed1879f959a4eb70249167e297751834 (diff) |
kernel-install: add default install scripts
Do the depmod in the kernel-install hooks, so hooks can produce/install
kernel modules and be part of the depmod.
Also move the basic boot loader entry creation and removal to a
plugin script.
If PRETTY_NAME is not defined in /etc/os-release, fallback to
PRETTY_NAME="Linux $KERNEL_VERSION".
Add documentation for everything in the man page.
Diffstat (limited to 'src/kernel-install/50-depmod.install')
-rw-r--r-- | src/kernel-install/50-depmod.install | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kernel-install/50-depmod.install b/src/kernel-install/50-depmod.install new file mode 100644 index 0000000000..68c24bed7a --- /dev/null +++ b/src/kernel-install/50-depmod.install @@ -0,0 +1,8 @@ +#!/bin/bash +# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- +# ex: ts=8 sw=4 sts=4 et filetype=sh + +[[ $1 == "add" ]] || exit 0 +[[ $2 ]] || exit 1 + +exec depmod -a "$2" |