Merges.
[vuplus_openembedded] / initscripts / initscripts_1.0.oe
1 DESCRIPTION = "SysV init scripts"
2 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
3 SECTION = "base"
4 PRIORITY = "required"
5 DEPENDS = "makedevs"
6 RDEPENDS = "makedevs"
7
8 SRC_URI = "file://halt \
9            file://ramdisk \
10            file://umountfs \
11            file://devices \
12            file://h3600/devices \
13            file://devpts.sh \
14            file://devpts \
15            file://bootlogo-simpad.gz \
16            file://hostname.sh \
17            file://mountall.sh \
18            file://banner \
19            file://finish \
20            file://bootmisc.sh \
21            file://mountnfs.sh \
22            file://ramses/umountfs \
23            file://ramses/extractfs \
24            file://reboot \
25            file://checkfs.sh \
26            file://simpad/devices \
27            file://simpad/banner \
28            file://single \
29            file://sendsigs \
30            file://packages \
31            file://urandom \
32            file://rmnologin \
33            file://extractfs \
34            file://checkroot.sh \
35            file://umountnfs.sh \
36            file://device_table.txt \
37            file://bootmisc.sh \
38            file://checkroot.sh \
39            file://finish \
40            file://halt \
41            file://hostname.sh \
42            file://mountall.sh \
43            file://mountnfs.sh \
44            file://packages \
45            file://reboot \
46            file://rmnologin \
47            file://sendsigs \
48            file://single \
49            file://umountnfs.sh \
50            file://devpts.sh \
51            file://devpts \
52            file://sysfs.sh \
53            file://banner \
54            file://devices \
55            file://extractfs \
56            file://umountfs \
57            file://device_table.txt"
58
59
60 do_install () {
61 #
62 # Create directories and install device independent scripts
63 #
64         install -d ${D}/${sysconfdir}/init.d \
65                    ${D}/${sysconfdir}/rcS.d \
66                    ${D}/${sysconfdir}/rc0.d \
67                    ${D}/${sysconfdir}/rc1.d \
68                    ${D}/${sysconfdir}/rc2.d \
69                    ${D}/${sysconfdir}/rc3.d \
70                    ${D}/${sysconfdir}/rc4.d \
71                    ${D}/${sysconfdir}/rc5.d \
72                    ${D}/${sysconfdir}/rc6.d \
73                    ${D}/${sysconfdir}/default
74         install -m 0755    ${WORKDIR}/bootmisc.sh       ${D}/etc/init.d
75         install -m 0755    ${WORKDIR}/checkroot.sh      ${D}/etc/init.d
76         install -m 0755    ${WORKDIR}/finish            ${D}/etc/init.d
77         install -m 0755    ${WORKDIR}/halt              ${D}/etc/init.d
78         install -m 0755    ${WORKDIR}/hostname.sh       ${D}/etc/init.d
79         install -m 0755    ${WORKDIR}/mountall.sh       ${D}/etc/init.d
80         install -m 0755    ${WORKDIR}/mountnfs.sh       ${D}/etc/init.d
81         install -m 0755    ${WORKDIR}/packages          ${D}/etc/init.d
82         install -m 0755    ${WORKDIR}/reboot            ${D}/etc/init.d
83         install -m 0755    ${WORKDIR}/rmnologin ${D}/etc/init.d
84         install -m 0755    ${WORKDIR}/sendsigs          ${D}/etc/init.d
85         install -m 0755    ${WORKDIR}/single            ${D}/etc/init.d
86         install -m 0755    ${WORKDIR}/umountnfs.sh      ${D}/etc/init.d
87 #       install -m 0755    ${FILESDIR}/urandom          ${D}/etc/init.d
88         install -m 0755    ${WORKDIR}/devpts.sh ${D}/etc/init.d
89         install -m 0755    ${WORKDIR}/devpts            ${D}/etc/default
90         install -m 0755    ${WORKDIR}/sysfs.sh          ${D}/etc/init.d
91 #
92 # Install device dependent scripts
93 #
94         oe_machinstall -m 0755 ${WORKDIR}/banner        ${D}/etc/init.d/banner
95         oe_machinstall -m 0755 ${WORKDIR}/devices       ${D}/etc/init.d/devices
96         oe_machinstall -m 0755 ${WORKDIR}/extractfs     ${D}/etc/init.d/extractfs
97         oe_machinstall -m 0755 ${WORKDIR}/umountfs      ${D}/etc/init.d/umountfs
98 #
99 # Create runlevel links
100 #
101         ln -sf          ../init.d/rmnologin     ${D}/etc/rc2.d/S99rmnologin
102         ln -sf          ../init.d/rmnologin     ${D}/etc/rc3.d/S99rmnologin
103         ln -sf          ../init.d/rmnologin     ${D}/etc/rc4.d/S99rmnologin
104         ln -sf          ../init.d/rmnologin     ${D}/etc/rc5.d/S99rmnologin
105         ln -sf          ../init.d/sendsigs      ${D}/etc/rc6.d/S20sendsigs
106 #       ln -sf          ../init.d/urandom       ${D}/etc/rc6.d/S30urandom
107         ln -sf          ../init.d/umountnfs.sh  ${D}/etc/rc6.d/S31umountnfs.sh
108 #       ln -sf          ../init.d/umountfs      ${D}/etc/rc6.d/S40umountfs
109         ln -sf          ../init.d/reboot        ${D}/etc/rc6.d/S90reboot
110         ln -sf          ../init.d/sendsigs      ${D}/etc/rc0.d/S20sendsigs
111 #       ln -sf          ../init.d/urandom       ${D}/etc/rc0.d/S30urandom
112         ln -sf          ../init.d/umountnfs.sh  ${D}/etc/rc0.d/S31umountnfs.sh
113 #       ln -sf          ../init.d/umountfs      ${D}/etc/rc0.d/S40umountfs
114         ln -sf          ../init.d/halt          ${D}/etc/rc0.d/S90halt
115         ln -sf          ../init.d/banner        ${D}/etc/rcS.d/S01banner
116         ln -sf          ../init.d/checkroot.sh  ${D}/etc/rcS.d/S10checkroot.sh
117 #       ln -sf          ../init.d/checkfs.sh    ${D}/etc/rcS.d/S30checkfs.sh
118         ln -sf          ../init.d/mountall.sh   ${D}/etc/rcS.d/S35mountall.sh
119 #       ln -sf          ../init.d/extractfs     ${D}/etc/rcS.d/S36extractfs
120         ln -sf          ../init.d/hostname.sh   ${D}/etc/rcS.d/S40hostname.sh
121         ln -sf          ../init.d/mountnfs.sh   ${D}/etc/rcS.d/S45mountnfs.sh
122         ln -sf          ../init.d/bootmisc.sh   ${D}/etc/rcS.d/S55bootmisc.sh
123 #       ln -sf          ../init.d/urandom       ${D}/etc/rcS.d/S55urandom
124         ln -sf          ../init.d/packages      ${D}/etc/rcS.d/S98packages
125         ln -sf          ../init.d/finish        ${D}/etc/rcS.d/S99finish
126         ln -sf          ../init.d/devices       ${D}/etc/rcS.d/S01devices
127         ln -sf          ../init.d/sysfs.sh      ${D}/etc/rcS.d/S36sysfs
128         ln -sf          ../init.d/devpts.sh     ${D}/etc/rcS.d/S31devpts.sh
129 #       ln -sf          ../init.d/ramdisk       ${D}/etc/rcS.d/S30ramdisk
130
131         install -m 0755    ${WORKDIR}/device_table.txt          ${D}/etc/device_table
132 }