From 6436a220545dcf1ce4bfc3887c7250f9a77ceb25 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Tue, 1 Aug 2023 23:15:55 +0200 Subject: [PATCH] use sysvinit --- recipes-diya/initramfs/files/confd | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 recipes-diya/initramfs/files/confd diff --git a/recipes-diya/initramfs/files/confd b/recipes-diya/initramfs/files/confd new file mode 100644 index 0000000..aa00a29 --- /dev/null +++ b/recipes-diya/initramfs/files/confd @@ -0,0 +1,20 @@ +#!/bin/sh + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DESC="Auto deployment configuration from media" + +case "$1" in + start) + echo -n "Start $DESC: " + # for some reason the LCD backlight is turned off + # need to turn it on manually + echo 0 > /sys/class/backlight/backlight/bl_power + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start}" >&2 + exit 1 + ;; +esac + +exit 0 \ No newline at end of file