aboutsummaryrefslogtreecommitdiffstats
path: root/install/uname
blob: cc9a88af96caa42b2f3afcff0b683f3d32056cf5 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

build() {
	if command -v add_systemd_unit >/dev/null; then
		add_systemd_unit "uname.service"

		# busybox provides uname, but the base hook is not prerequisite
		# for a systemd-enable initramfs - so add uname
		add_binary uname

		add_symlink "/usr/lib/systemd/system/sysinit.target.wants/uname.service" "../uname.service"
	else
		add_runscript
	fi
}

help() {
	echo "This hook adds an uname output to the boot process."
}