mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-12-26 02:38:22 +01:00
use sysvinit
This commit is contained in:
parent
afbfe3bba0
commit
dbc5d431a0
@ -24,11 +24,11 @@ do_install() {
|
||||
install -d ${D}/${sysconfdir}/init.d/
|
||||
install -d ${DEPLOY_DIR_IMAGE}
|
||||
install -m 0755 ${WORKDIR}/confd ${D}/${sysconfdir}/init.d/confd
|
||||
install -d ${D}/usr/sbin/
|
||||
install -d ${D}/sbin/
|
||||
install -d ${D}/etc/default/volatiles
|
||||
# install -m 0644 ${WORKDIR}/80_diya ${D}${sysconfdir}/default/volatiles
|
||||
install -m 0755 ${WORKDIR}/expandfs.sh ${D}/usr/sbin/expandfs.sh
|
||||
install -m 0755 ${WORKDIR}/boot-to-recovery ${D}/usr/sbin/boot-to-recovery
|
||||
install -m 0755 ${WORKDIR}/expandfs.sh ${D}/sbin/expandfs.sh
|
||||
install -m 0755 ${WORKDIR}/boot-to-recovery ${D}/sbin/boot-to-recovery
|
||||
install -m 0755 ${WORKDIR}/fs_resize ${DEPLOY_DIR_IMAGE}/
|
||||
|
||||
cat << EOF >> ${DEPLOY_DIR_IMAGE}/extraconfig.txt
|
||||
|
@ -13,7 +13,7 @@ case "$1" in
|
||||
# need to turn it on manually
|
||||
echo 0 > /sys/class/backlight/backlight/bl_power
|
||||
if [ -f "/boot/fs_resize" ]; then
|
||||
/usr/sbin/expandfs.sh
|
||||
/sbin/expandfs.sh
|
||||
touch /boot/home_partition_should_be_formated
|
||||
rm /boot/fs_resize
|
||||
reboot
|
||||
|
@ -15,7 +15,7 @@ case "$1" in
|
||||
# mount boot
|
||||
mount /dev/mmcblk0p1 /boot
|
||||
|
||||
cat << EOF >> /boot/extraconfig.txt
|
||||
cat << EOF > /boot/extraconfig.txt
|
||||
# initramfs recovery-${MACHINE}.cpio.gz followkernel
|
||||
EOF
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user