summaryrefslogtreecommitdiffstats
path: root/install/uname
blob: f1eb5b380a593060a3e6038c713ca7f3b30115ff (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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 if required
		if [ ! -e "${BUILDROOT}/usr/bin/uname" ]; then
			add_binary uname
		fi

		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."
}