mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 16:59:03 +03:00
8f51399e75
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.
9 lines
191 B
Bash
9 lines
191 B
Bash
#!/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"
|