mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
Raspberry Pi (all): add S07dtoverlays init script
This commit is contained in:
parent
949bc964b8
commit
77414ccb77
41
board/raspberrypi/overlay/etc/init.d/S07dtoverlays
Executable file
41
board/raspberrypi/overlay/etc/init.d/S07dtoverlays
Executable file
@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SYS_DTOVERLAYS_FILE="/etc/dtoverlays"
|
||||||
|
BOOT_DTOVERLAYS_FILE="/boot/dtoverlays"
|
||||||
|
DTOVERLAYS_FILE="/data/etc/dtoverlays"
|
||||||
|
|
||||||
|
PROG="/usr/bin/dtoverlay"
|
||||||
|
|
||||||
|
|
||||||
|
test -n "${OS_VERSION}" || source /etc/init.d/base
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
msg_begin "Loading device-tree overlays"
|
||||||
|
|
||||||
|
if [[ -r ${SYS_DTOVERLAYS_FILE} ]]; then
|
||||||
|
cat ${SYS_DTOVERLAYS_FILE} | while read line; do test -n "${line}" && ${PROG} ${line}; done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -r ${BOOT_DTOVERLAYS_FILE} ]]; then
|
||||||
|
cat ${BOOT_DTOVERLAYS_FILE} | while read line; do test -n "${line}" && ${PROG} ${line}; done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -r ${DTOVERLAYS_FILE} ]]; then
|
||||||
|
cat ${DTOVERLAYS_FILE} | while read line; do test -n "${line}" && ${PROG} ${line}; done
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg_done
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
true
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start}"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit $?
|
||||||
|
|
41
board/raspberrypi2/overlay/etc/init.d/S07dtoverlays
Executable file
41
board/raspberrypi2/overlay/etc/init.d/S07dtoverlays
Executable file
@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SYS_DTOVERLAYS_FILE="/etc/dtoverlays"
|
||||||
|
BOOT_DTOVERLAYS_FILE="/boot/dtoverlays"
|
||||||
|
DTOVERLAYS_FILE="/data/etc/dtoverlays"
|
||||||
|
|
||||||
|
PROG="/usr/bin/dtoverlay"
|
||||||
|
|
||||||
|
|
||||||
|
test -n "${OS_VERSION}" || source /etc/init.d/base
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
msg_begin "Loading device-tree overlays"
|
||||||
|
|
||||||
|
if [[ -r ${SYS_DTOVERLAYS_FILE} ]]; then
|
||||||
|
cat ${SYS_DTOVERLAYS_FILE} | while read line; do test -n "${line}" && ${PROG} ${line}; done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -r ${BOOT_DTOVERLAYS_FILE} ]]; then
|
||||||
|
cat ${BOOT_DTOVERLAYS_FILE} | while read line; do test -n "${line}" && ${PROG} ${line}; done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -r ${DTOVERLAYS_FILE} ]]; then
|
||||||
|
cat ${DTOVERLAYS_FILE} | while read line; do test -n "${line}" && ${PROG} ${line}; done
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg_done
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
true
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start}"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit $?
|
||||||
|
|
41
board/raspberrypi3/overlay/etc/init.d/S07dtoverlays
Executable file
41
board/raspberrypi3/overlay/etc/init.d/S07dtoverlays
Executable file
@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SYS_DTOVERLAYS_FILE="/etc/dtoverlays"
|
||||||
|
BOOT_DTOVERLAYS_FILE="/boot/dtoverlays"
|
||||||
|
DTOVERLAYS_FILE="/data/etc/dtoverlays"
|
||||||
|
|
||||||
|
PROG="/usr/bin/dtoverlay"
|
||||||
|
|
||||||
|
|
||||||
|
test -n "${OS_VERSION}" || source /etc/init.d/base
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
msg_begin "Loading device-tree overlays"
|
||||||
|
|
||||||
|
if [[ -r ${SYS_DTOVERLAYS_FILE} ]]; then
|
||||||
|
cat ${SYS_DTOVERLAYS_FILE} | while read line; do test -n "${line}" && ${PROG} ${line}; done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -r ${BOOT_DTOVERLAYS_FILE} ]]; then
|
||||||
|
cat ${BOOT_DTOVERLAYS_FILE} | while read line; do test -n "${line}" && ${PROG} ${line}; done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -r ${DTOVERLAYS_FILE} ]]; then
|
||||||
|
cat ${DTOVERLAYS_FILE} | while read line; do test -n "${line}" && ${PROG} ${line}; done
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg_done
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
true
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start}"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit $?
|
||||||
|
|
41
board/raspberrypi4/overlay/etc/init.d/S07dtoverlays
Executable file
41
board/raspberrypi4/overlay/etc/init.d/S07dtoverlays
Executable file
@ -0,0 +1,41 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SYS_DTOVERLAYS_FILE="/etc/dtoverlays"
|
||||||
|
BOOT_DTOVERLAYS_FILE="/boot/dtoverlays"
|
||||||
|
DTOVERLAYS_FILE="/data/etc/dtoverlays"
|
||||||
|
|
||||||
|
PROG="/usr/bin/dtoverlay"
|
||||||
|
|
||||||
|
|
||||||
|
test -n "${OS_VERSION}" || source /etc/init.d/base
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
msg_begin "Loading device-tree overlays"
|
||||||
|
|
||||||
|
if [[ -r ${SYS_DTOVERLAYS_FILE} ]]; then
|
||||||
|
cat ${SYS_DTOVERLAYS_FILE} | while read line; do test -n "${line}" && ${PROG} ${line}; done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -r ${BOOT_DTOVERLAYS_FILE} ]]; then
|
||||||
|
cat ${BOOT_DTOVERLAYS_FILE} | while read line; do test -n "${line}" && ${PROG} ${line}; done
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -r ${DTOVERLAYS_FILE} ]]; then
|
||||||
|
cat ${DTOVERLAYS_FILE} | while read line; do test -n "${line}" && ${PROG} ${line}; done
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg_done
|
||||||
|
;;
|
||||||
|
|
||||||
|
stop)
|
||||||
|
true
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "Usage: $0 {start}"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit $?
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user