mirror of
https://git.proxmox.com/git/systemd
synced 2025-12-26 17:40:13 +00:00
initramfs-tools will use shellcheck on its own code and will probably ship a shellcheck autopkgtest that checks its hooks and script directory. That's how the shellcheck issues in systemd's initramfs-tools scripts were found. ``` shellcheck -e SC1091 $(find debian/extra/initramfs-tools/ -type f) ```
32 lines
568 B
Bash
Executable File
32 lines
568 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
PREREQS=""
|
|
|
|
prereqs() { echo "$PREREQS"; }
|
|
|
|
case "$1" in
|
|
prereqs)
|
|
prereqs
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
if [ -w /sys/kernel/uevent_helper ]; then
|
|
echo > /sys/kernel/uevent_helper
|
|
fi
|
|
|
|
if [ "${quiet:-n}" = "y" ]; then
|
|
log_level=notice
|
|
else
|
|
log_level=info
|
|
fi
|
|
|
|
SYSTEMD_LOG_LEVEL=$log_level /lib/systemd/systemd-udevd --daemon --resolve-names=never
|
|
|
|
udevadm trigger --type=subsystems --action=add
|
|
udevadm trigger --type=devices --action=add
|
|
udevadm settle || true
|
|
|
|
# Leave udev running to process events that come in out-of-band (like USB
|
|
# connections)
|