| 1 |
DESCRIPTION = "SysV init scripts" |
|---|
| 2 |
SECTION = "base" |
|---|
| 3 |
PRIORITY = "required" |
|---|
| 4 |
DEPENDS = "makedevs" |
|---|
| 5 |
RDEPENDS = "makedevs" |
|---|
| 6 |
LICENSE = "GPL" |
|---|
| 7 |
PR = "r96" |
|---|
| 8 |
|
|---|
| 9 |
SRC_URI = "file://halt \ |
|---|
| 10 |
file://ramdisk \ |
|---|
| 11 |
file://umountfs \ |
|---|
| 12 |
file://devices \ |
|---|
| 13 |
file://devpts.sh \ |
|---|
| 14 |
file://devpts \ |
|---|
| 15 |
file://hostname.sh \ |
|---|
| 16 |
file://mountall.sh \ |
|---|
| 17 |
file://banner \ |
|---|
| 18 |
file://finish \ |
|---|
| 19 |
file://bootmisc.sh \ |
|---|
| 20 |
file://mountnfs.sh \ |
|---|
| 21 |
file://reboot \ |
|---|
| 22 |
file://checkfs.sh \ |
|---|
| 23 |
file://single \ |
|---|
| 24 |
file://sendsigs \ |
|---|
| 25 |
file://urandom \ |
|---|
| 26 |
file://rmnologin \ |
|---|
| 27 |
file://remountroot \ |
|---|
| 28 |
file://checkroot.sh \ |
|---|
| 29 |
file://umountnfs.sh \ |
|---|
| 30 |
file://sysfs.sh \ |
|---|
| 31 |
file://device_table.txt \ |
|---|
| 32 |
file://populate-volatile.sh \ |
|---|
| 33 |
file://volatiles \ |
|---|
| 34 |
file://save-rtc.sh" |
|---|
| 35 |
|
|---|
| 36 |
SRC_URI_append_arm = " file://alignment.sh" |
|---|
| 37 |
|
|---|
| 38 |
KERNEL_VERSION = "" |
|---|
| 39 |
|
|---|
| 40 |
do_install () { |
|---|
| 41 |
# |
|---|
| 42 |
# Create directories and install device independent scripts |
|---|
| 43 |
# |
|---|
| 44 |
install -d ${D}${sysconfdir}/init.d \ |
|---|
| 45 |
${D}${sysconfdir}/rcS.d \ |
|---|
| 46 |
${D}${sysconfdir}/rc0.d \ |
|---|
| 47 |
${D}${sysconfdir}/rc1.d \ |
|---|
| 48 |
${D}${sysconfdir}/rc2.d \ |
|---|
| 49 |
${D}${sysconfdir}/rc3.d \ |
|---|
| 50 |
${D}${sysconfdir}/rc4.d \ |
|---|
| 51 |
${D}${sysconfdir}/rc5.d \ |
|---|
| 52 |
${D}${sysconfdir}/rc6.d \ |
|---|
| 53 |
${D}${sysconfdir}/default \ |
|---|
| 54 |
${D}${sysconfdir}/default/volatiles |
|---|
| 55 |
|
|---|
| 56 |
install -m 0755 ${WORKDIR}/bootmisc.sh ${D}${sysconfdir}/init.d |
|---|
| 57 |
install -m 0755 ${WORKDIR}/checkroot.sh ${D}${sysconfdir}/init.d |
|---|
| 58 |
install -m 0755 ${WORKDIR}/finish ${D}${sysconfdir}/init.d |
|---|
| 59 |
install -m 0755 ${WORKDIR}/halt ${D}${sysconfdir}/init.d |
|---|
| 60 |
install -m 0755 ${WORKDIR}/hostname.sh ${D}${sysconfdir}/init.d |
|---|
| 61 |
install -m 0755 ${WORKDIR}/mountall.sh ${D}${sysconfdir}/init.d |
|---|
| 62 |
install -m 0755 ${WORKDIR}/mountnfs.sh ${D}${sysconfdir}/init.d |
|---|
| 63 |
install -m 0755 ${WORKDIR}/ramdisk ${D}${sysconfdir}/init.d |
|---|
| 64 |
install -m 0755 ${WORKDIR}/reboot ${D}${sysconfdir}/init.d |
|---|
| 65 |
install -m 0755 ${WORKDIR}/rmnologin ${D}${sysconfdir}/init.d |
|---|
| 66 |
install -m 0755 ${WORKDIR}/remountroot ${D}${sysconfdir}/init.d |
|---|
| 67 |
install -m 0755 ${WORKDIR}/sendsigs ${D}${sysconfdir}/init.d |
|---|
| 68 |
install -m 0755 ${WORKDIR}/single ${D}${sysconfdir}/init.d |
|---|
| 69 |
install -m 0755 ${WORKDIR}/umountnfs.sh ${D}${sysconfdir}/init.d |
|---|
| 70 |
install -m 0755 ${WORKDIR}/urandom ${D}${sysconfdir}/init.d |
|---|
| 71 |
install -m 0755 ${WORKDIR}/devpts.sh ${D}${sysconfdir}/init.d |
|---|
| 72 |
install -m 0755 ${WORKDIR}/devpts ${D}${sysconfdir}/default |
|---|
| 73 |
install -m 0755 ${WORKDIR}/sysfs.sh ${D}${sysconfdir}/init.d |
|---|
| 74 |
install -m 0755 ${WORKDIR}/populate-volatile.sh ${D}${sysconfdir}/init.d |
|---|
| 75 |
install -m 0755 ${WORKDIR}/save-rtc.sh ${D}${sysconfdir}/init.d |
|---|
| 76 |
install -m 0644 ${WORKDIR}/volatiles ${D}${sysconfdir}/default/volatiles/00_core |
|---|
| 77 |
if [ "${TARGET_ARCH}" = "arm" ]; then |
|---|
| 78 |
install -m 0755 ${WORKDIR}/alignment.sh ${D}${sysconfdir}/init.d |
|---|
| 79 |
fi |
|---|
| 80 |
# |
|---|
| 81 |
# Install device dependent scripts |
|---|
| 82 |
# |
|---|
| 83 |
install -m 0755 ${WORKDIR}/banner ${D}${sysconfdir}/init.d/banner |
|---|
| 84 |
install -m 0755 ${WORKDIR}/devices ${D}${sysconfdir}/init.d/devices |
|---|
| 85 |
install -m 0755 ${WORKDIR}/umountfs ${D}${sysconfdir}/init.d/umountfs |
|---|
| 86 |
# |
|---|
| 87 |
# Create runlevel links |
|---|
| 88 |
# |
|---|
| 89 |
ln -sf ../init.d/remountroot ${D}${sysconfdir}/rcS.d/S80remountroot |
|---|
| 90 |
ln -sf ../init.d/sshd ${D}${sysconfdir}/rc3.d/S80sshd |
|---|
| 91 |
ln -sf ../init.d/sshd ${D}${sysconfdir}/rc4.d/S80sshd |
|---|
| 92 |
ln -sf ../init.d/sshd ${D}${sysconfdir}/rc5.d/S80sshd |
|---|
| 93 |
ln -sf ../init.d/rmnologin ${D}${sysconfdir}/rc2.d/S99rmnologin |
|---|
| 94 |
ln -sf ../init.d/rmnologin ${D}${sysconfdir}/rc3.d/S99rmnologin |
|---|
| 95 |
ln -sf ../init.d/rmnologin ${D}${sysconfdir}/rc4.d/S99rmnologin |
|---|
| 96 |
ln -sf ../init.d/rmnologin ${D}${sysconfdir}/rc5.d/S99rmnologin |
|---|
| 97 |
ln -sf ../init.d/sendsigs ${D}${sysconfdir}/rc6.d/S20sendsigs |
|---|
| 98 |
# ln -sf ../init.d/urandom ${D}${sysconfdir}/rc6.d/S30urandom |
|---|
| 99 |
ln -sf ../init.d/umountnfs.sh ${D}${sysconfdir}/rc6.d/S31umountnfs.sh |
|---|
| 100 |
ln -sf ../init.d/umountfs ${D}${sysconfdir}/rc6.d/S40umountfs |
|---|
| 101 |
# udev will run at S55 if installed |
|---|
| 102 |
ln -sf ../init.d/ramdisk ${D}${sysconfdir}/rcS.d/S30ramdisk |
|---|
| 103 |
ln -sf ../init.d/reboot ${D}${sysconfdir}/rc6.d/S90reboot |
|---|
| 104 |
ln -sf ../init.d/sendsigs ${D}${sysconfdir}/rc0.d/S20sendsigs |
|---|
| 105 |
# ln -sf ../init.d/urandom ${D}${sysconfdir}/rc0.d/S30urandom |
|---|
| 106 |
ln -sf ../init.d/umountnfs.sh ${D}${sysconfdir}/rc0.d/S31umountnfs.sh |
|---|
| 107 |
ln -sf ../init.d/umountfs ${D}${sysconfdir}/rc0.d/S40umountfs |
|---|
| 108 |
# udev will run at S55 if installed |
|---|
| 109 |
ln -sf ../init.d/halt ${D}${sysconfdir}/rc0.d/S90halt |
|---|
| 110 |
ln -sf ../init.d/save-rtc.sh ${D}${sysconfdir}/rc0.d/S25save-rtc.sh |
|---|
| 111 |
ln -sf ../init.d/save-rtc.sh ${D}${sysconfdir}/rc6.d/S25save-rtc.sh |
|---|
| 112 |
ln -sf ../init.d/banner ${D}${sysconfdir}/rcS.d/S02banner |
|---|
| 113 |
ln -sf ../init.d/checkroot.sh ${D}${sysconfdir}/rcS.d/S10checkroot.sh |
|---|
| 114 |
# ln -sf ../init.d/checkfs.sh ${D}${sysconfdir}/rcS.d/S30checkfs.sh |
|---|
| 115 |
ln -sf ../init.d/mountall.sh ${D}${sysconfdir}/rcS.d/S35mountall.sh |
|---|
| 116 |
ln -sf ../init.d/hostname.sh ${D}${sysconfdir}/rcS.d/S39hostname.sh |
|---|
| 117 |
ln -sf ../init.d/mountnfs.sh ${D}${sysconfdir}/rcS.d/S45mountnfs.sh |
|---|
| 118 |
ln -sf ../init.d/bootmisc.sh ${D}${sysconfdir}/rcS.d/S55bootmisc.sh |
|---|
| 119 |
# ln -sf ../init.d/urandom ${D}${sysconfdir}/rcS.d/S55urandom |
|---|
| 120 |
ln -sf ../init.d/finish ${D}${sysconfdir}/rcS.d/S99finish |
|---|
| 121 |
ln -sf ../init.d/devices ${D}${sysconfdir}/rcS.d/S05devices |
|---|
| 122 |
# udev will run at S04 if installed |
|---|
| 123 |
ln -sf ../init.d/sysfs.sh ${D}${sysconfdir}/rcS.d/S03sysfs |
|---|
| 124 |
ln -sf ../init.d/populate-volatile.sh ${D}${sysconfdir}/rcS.d/S37populate-volatile.sh |
|---|
| 125 |
ln -sf ../init.d/devpts.sh ${D}${sysconfdir}/rcS.d/S38devpts.sh |
|---|
| 126 |
if [ "${TARGET_ARCH}" = "arm" ]; then |
|---|
| 127 |
ln -sf ../init.d/alignment.sh ${D}${sysconfdir}/rcS.d/S06alignment |
|---|
| 128 |
fi |
|---|
| 129 |
|
|---|
| 130 |
install -m 0755 ${WORKDIR}/device_table.txt ${D}${sysconfdir}/device_table |
|---|
| 131 |
} |
|---|