mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 15:48:51 +01:00
bug correction when detection swap and share partitions to launch first boot script
This commit is contained in:
parent
6295ae5927
commit
d9329c5673
@ -5,19 +5,19 @@ THIS=$(basename $0)
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
|
||||||
# Check is SWAP partition already created
|
# Check is SWAP partition already created
|
||||||
sgdisk /dev/mmcblk0 | grep swap
|
sgdisk -p /dev/mmcblk0 | grep swap > /dev/null
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
first_boot
|
first_boot
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check is share partition already created
|
# Check is share partition already created
|
||||||
sgdisk /dev/mmcblk0 | grep share
|
sgdisk -p /dev/mmcblk0 | grep share > /dev/null
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
first_boot
|
first_boot
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
;;
|
;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user