mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2025-08-01 05:31:02 +02:00
use overlayfs for /etc
This commit is contained in:
@ -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