1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-12-28 19:38:21 +01:00
meta-rpi-diya/recipes-diya/initramfs/files/confd
2023-08-02 01:04:31 +02:00

24 lines
530 B
Bash

#!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC="Custom configuration"
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
# hostname
echo "diya-recovery" > /proc/sys/kernel/hostname
# mount boot
mount /dev/mmcblk0p1 /boot
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start}" >&2
exit 1
;;
esac
exit 0