refactor + use gtk4-layer-shell 1.1.0

This commit is contained in:
DanyLE
2025-03-05 14:27:12 +01:00
parent bdfbfc9669
commit daa23c88e6
16 changed files with 138 additions and 96 deletions

View File

@ -3,6 +3,10 @@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC="Auto deployment configuration from media"
if [ -z "$DISK" ]; then
DISK="mmcblk1"
fi
case "$1" in
start)
echo -n "Start $DESC: "
@ -19,9 +23,9 @@ case "$1" in
fi
if [ -f "/boot/home_partition_should_be_formated" ]; then
echo "Trying to format the home partition"
umount /dev/mmcblk1p4
yes | mkfs.ext4 /dev/mmcblk1p4
mount /dev/mmcblk1p4 /home
umount /dev/${DISK}p4
yes | mkfs.ext4 /dev/${DISK}p4
mount /dev/${DISK}p4 /home
mkdir -p /home/diya
chown -R diya:diya /home/diya
rm /boot/home_partition_should_be_formated