mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2025-08-03 06:31:10 +02:00
Compare commits
2 Commits
4637985cdd
...
3ceeeb7cf1
Author | SHA1 | Date | |
---|---|---|---|
3ceeeb7cf1 | |||
ef288cd22e |
@ -1,7 +1 @@
|
||||
hostname = "diya"
|
||||
do_install:append () {
|
||||
cat >> ${D}${sysconfdir}/fstab <<EOF
|
||||
# add overlay for /etc
|
||||
overlay /etc overlay defaults,nofail,lowerdir=/etc,upperdir=/var/etc/upper,workdir=/var/etc/work 0 2
|
||||
EOF
|
||||
}
|
||||
hostname = "diya"
|
@ -17,14 +17,14 @@ GROUPADD_PACKAGES = "${PN}"
|
||||
USERADD_PARAM:${PN} = "-u 1000 -d /home/diya -r -s /bin/sh diya"
|
||||
|
||||
INITSCRIPT_NAME = "confd"
|
||||
INITSCRIPT_PARAMS = "start 80 S ."
|
||||
INITSCRIPT_PARAMS = "start 0 S ."
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/${sysconfdir}/init.d/
|
||||
install -m 0755 ${WORKDIR}/confd ${D}/${sysconfdir}/init.d/confd
|
||||
install -d ${D}/usr/bin/
|
||||
install -d ${D}/etc/default/volatiles
|
||||
install -m 0644 ${WORKDIR}/80_diya ${D}${sysconfdir}/default/volatiles
|
||||
# install -m 0644 ${WORKDIR}/80_diya ${D}${sysconfdir}/default/volatiles
|
||||
install -m 0755 ${WORKDIR}/expandfs.sh ${D}/usr/bin/expandfs.sh
|
||||
install -m 0755 ${WORKDIR}/fs_resize ${DEPLOY_DIR_IMAGE}/
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#d root root 0755 /var/etc/upper none
|
||||
#d root root 0755 /var/etc/work none
|
||||
|
||||
# d root root 0755 /var/etc/upper none
|
||||
# d root root 0755 /var/etc/work none
|
||||
# l root root 0644 /etc/dropbear /var/etc/dropbear
|
||||
|
@ -6,6 +6,9 @@ DESC="Auto deployment configuration from media"
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Start $DESC: "
|
||||
# mount the overlay which is not auto mount by fstab
|
||||
# this make /etc editable
|
||||
mount -t overlay -o lowerdir=/etc,upperdir=/var/etc/upper,workdir=/var/etc/work overlay /etc
|
||||
# for some reason the LCD backlight is turned off
|
||||
# need to turn it on manually
|
||||
echo 0 > /sys/class/backlight/backlight/bl_power
|
||||
@ -31,7 +34,6 @@ case "$1" in
|
||||
# display information
|
||||
# disable wifi power save
|
||||
/usr/sbin/iw wlan0 set power_save off
|
||||
/sbin/ip a
|
||||
;;
|
||||
*)
|
||||
N=/etc/init.d/$NAME
|
||||
|
Reference in New Issue
Block a user