mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2026-04-09 11:32:31 +02:00
add system update tools
This commit is contained in:
@@ -12,6 +12,7 @@ inherit allarch update-rc.d
|
||||
|
||||
SRC_URI = "file://init \
|
||||
file://confd \
|
||||
file://diya-update \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
@@ -21,13 +22,20 @@ INITSCRIPT_PARAMS = "start 30 S ."
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/etc/init.d
|
||||
|
||||
install -d ${D}/sbin
|
||||
# base
|
||||
install -m 0755 ${WORKDIR}/init ${D}/init
|
||||
install -m 0755 ${WORKDIR}/confd ${D}/etc/init.d/confd
|
||||
cat << EOF >> ${D}/etc/profile
|
||||
export MACHINE=${MACHINE}
|
||||
EOF
|
||||
install -m 0755 ${WORKDIR}/diya-update ${D}/sbin/
|
||||
|
||||
# create symlink
|
||||
ln -sf /sbin/diya-update ${D}/sbin/diya-update-rootfs
|
||||
ln -sf /sbin/diya-update ${D}/sbin/diya-update-kernel
|
||||
ln -sf /sbin/diya-update ${D}/sbin/diya-update-initramfs
|
||||
|
||||
# Create device nodes expected by some kernels in initramfs
|
||||
# before even executing /init.
|
||||
install -d ${D}/dev
|
||||
@@ -35,4 +43,4 @@ EOF
|
||||
}
|
||||
|
||||
|
||||
FILES:${PN} = "/etc /init /dev"
|
||||
FILES:${PN} = "/etc /init /dev /sbin"
|
||||
Reference in New Issue
Block a user