1 DESCRIPTION = "SysV init scripts"
2 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
8 SRC_URI = "file://halt \
12 file://h3600/devices \
15 file://bootlogo-simpad.gz \
22 file://ramses/umountfs \
23 file://ramses/extractfs \
26 file://simpad/devices \
27 file://simpad/banner \
36 file://device_table.txt \
57 file://device_table.txt"
62 # Create directories and install device independent scripts
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
92 # Install device dependent scripts
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
99 # Create runlevel links
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
131 install -m 0755 ${WORKDIR}/device_table.txt ${D}/etc/device_table