Commit c5875bb4 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

overlay-sync

parent 55d7a9b2
...@@ -46,6 +46,7 @@ IMAGE_INSTALL_append += " \ ...@@ -46,6 +46,7 @@ IMAGE_INSTALL_append += " \
dhcpcd \ dhcpcd \
linux-firmware-rtl8192cu \ linux-firmware-rtl8192cu \
init-elphel393 \ init-elphel393 \
overlay-sync \
init-tempmon \ init-tempmon \
ahci-blacklist \ ahci-blacklist \
udev-rules \ udev-rules \
......
#!/bin/sh
rsync -av \
--exclude '*.pyc' \
--exclude '.python-history*' \
--exclude 'etc/udev-cache.tar.gz' \
--exclude 'etc/udev' \
--exclude 'media' \
--exclude 'mnt' \
--exclude 'run' \
--exclude 'var' \
/tmp/rootfs.rw/upperdir/ /tmp/rootfs.ro/
exit 0
#!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=overlay_syncd
DESC="overlay sync"
case "$1" in
start)
echo -n "Starting $DESC: "
echo "$NAME:"
;;
stop)
echo -n "Stopping $DESC: "
echo "$NAME."
/sbin/overlay_sync
;;
restart)
echo -n "Restarting $DESC: "
echo "$NAME."
;;
status)
echo -n "$NAME status:"
if [ -f /var/run/$NAME ]; then
echo -n "Running"
else
echo -n "Not running"
fi
;;
sync)
/sbin/overlay_sync
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|status|sync}" >&2
exit 1
;;
esac
exit 0
\ No newline at end of file
SUMMARY = "Extra scripts for the Elphel 10393 board"
DESCRIPTION = "universal for overlayfs"
AUTHOR = "Elphel Inc."
HOMEPAGE = "http://www3.elphel.com/"
PRIORITY = "optional"
LICENSE = "GPL-3.0+"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0;md5=c79ff39f19dfec6d293b95dea7b07891"
SRCDATE = "20160706"
PV = "${SRCDATE}"
PR = "r0"
SRC_URI = "file://overlay_sync \
file://overlay_syncd \
"
S = "${WORKDIR}/"
INITSCRIPT_NAME = "overlay_syncd"
INITSCRIPT_PARAMS = "start 99 2 3 4 5 . stop 99 0 1 6 ."
FILES_${PN} = "\
/etc/* \
/sbin/* \
"
#This needs to get the script into rc?.d/
inherit update-rc.d
do_install_append() {
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/overlay_syncd ${D}${sysconfdir}/init.d
#install init script to /sbin
install -d ${D}${base_sbindir}
install -m 0755 ${WORKDIR}/overlay_sync ${D}${base_sbindir}
}
PACKAGES = " overlay-sync"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment