Commit aae2d521 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

extra init script

parent 69cf7478
This diff is collapsed.
#!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/init_elphel393
NAME=init_elphel393
DESC="extra init scripts"
case "$1" in
start)
echo -n "Starting $DESC: "
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
SUMMARY = "Extra initscripts for the Elphel 10393 board"
DESCRIPTION = "Platform/board specific initializations"
AUTHOR = "Elphel Inc."
HOMEPAGE = "http://www3.elphel.com/"
PRIORITY = "optional"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;beginline=21;endline=699;md5=ccd2fef7dee090f3b211c6677c3e34cc"
SRCDATE = "20131202"
PV = "${SRCDATE}"
PR = "r0"
SRC_URI = "file://init_elphel393 \
file://LICENSE \
"
S = "${WORKDIR}/"
INITSCRIPT_NAME = "init_elphel393"
INITSCRIPT_PARAMS = "defaults 75"
#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}/init_elphel393 ${D}${sysconfdir}/init.d
}
PACKAGES = " init-elphel393"
\ No newline at end of file
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