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

build() {
	if add_systemd_unit uname.service 2>/dev/null; then
		# 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."
}