refactor + use gtk4-layer-shell 1.1.0
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user