summaryrefslogtreecommitdiff
path: root/modutils/modutils-collateral.oe
blob: 74e2d1d45d2c2210283157055604ef3662f6953d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
DEPENDS = "virtual/libc"
DESCRIPTION = "modutils configuration files"

SRC_URI = "file://${FILESDIR}/modules \
	   file://${FILESDIR}/modules.conf \
	   file://${FILESDIR}/modutils"

pkg_postinst () {
	if test -n "${D}"; then
		D="-r ${D}"
	fi
	update-rc.d $D modutils start 20 S .
}

pkg_prerm () {
	if test -n "${D}"; then
		D="-r ${D}"
	fi
	update-rc.d $D modutils remove
}
do_compile () {
}

do_install () {
	install -d ${D}/${sysconfdir} ${D}/etc/init.d/
	install -m 0755 ${FILESDIR}/modutils ${D}/etc/init.d/
	oe_machinstall -m 0644 ${FILESDIR}/modules ${D}/${sysconfdir}/modules
	oe_machinstall -m 0644 ${FILESDIR}/modules.conf ${D}/${sysconfdir}/modules.conf
}