blob: b1e2aadf41cde750aaab5c34598cbcfd0e95043e (
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
30
31
32
33
34
35
36
|
DESCRIPTION = "Provides default system config files and /var/config fs"
SECTION = "base"
LICENSE = "GPL"
PR = "r12"
inherit update-rc.d
INITSCRIPT_NAME = "config"
INITSCRIPT_PARAMS = "start 31 S ."
SRC_URI = "\
file://network \
file://ppp \
file://passwd \
file://group \
file://config.init \
"
CONFIGFILES = "network ppp passwd group"
fakeroot do_install () {
cd ${WORKDIR}
# default config files
rm -f defaults.tar.gz
tar czf defaults.tar.gz ${CONFIGFILES}
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/defaults.tar.gz ${D}${sysconfdir}/defaults.tar.gz
# init script
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/config.init ${D}${sysconfdir}/init.d/config
}
FILES_${PN} = "${sysconfdir}/defaults.tar.gz"
FILES_${PN} += "${sysconfdir}/init.d/config"
|