summaryrefslogtreecommitdiffstats
path: root/linux-image-4.19.pkg/preinst
blob: 881ea9be7815b976287f21ffda86d3d631c344eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# Prevent the following ENOENT warning message on new installations:
#     run-parts: /etc/kernel/preinst.d: No such file or directory
if ! [ -d /etc/kernel/preinst.d ]; then
	exit 0
fi

first=true
for arg in "${@}"; do
	if ${first}; then
		set --
		first=false
	fi
	set -- "${@}" -a "${arg}"
done

run-parts "${@}" /etc/kernel/preinst.d