mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
installer: meh. indents..
This commit is contained in:
parent
76a19cc0a6
commit
8f4dabd30f
@ -135,8 +135,8 @@ create_partition_list() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
do_install_mbr() {
|
do_install_mbr() {
|
||||||
|
|
||||||
# show menu
|
# show menu
|
||||||
|
|
||||||
MSG_TITLE="\Z4[ (RE)INSTALL MBR ]\Zn"
|
MSG_TITLE="\Z4[ (RE)INSTALL MBR ]\Zn"
|
||||||
MSG_MENU="\n Please select where to install MBR.\n\n Please select a device:"
|
MSG_MENU="\n Please select where to install MBR.\n\n Please select a device:"
|
||||||
MSG_CANCEL="Back"
|
MSG_CANCEL="Back"
|
||||||
@ -226,7 +226,6 @@ do_install_quick() {
|
|||||||
dd if=/dev/zero of=$INSTALL_DEVICE bs=4096 count=1024
|
dd if=/dev/zero of=$INSTALL_DEVICE bs=4096 count=1024
|
||||||
|
|
||||||
# create 2 new partitions (first $PARTSIZE_SYSTEM, second rest)
|
# create 2 new partitions (first $PARTSIZE_SYSTEM, second rest)
|
||||||
|
|
||||||
msg_progress_install "7" "creating label on $INSTALL_DEVICE"
|
msg_progress_install "7" "creating label on $INSTALL_DEVICE"
|
||||||
if [ "$GPT" = "1" ]; then
|
if [ "$GPT" = "1" ]; then
|
||||||
parted -s $INSTALL_DEVICE mklabel gpt >> $LOGFILE 2>&1
|
parted -s $INSTALL_DEVICE mklabel gpt >> $LOGFILE 2>&1
|
||||||
@ -675,7 +674,6 @@ bios_backup() {
|
|||||||
bios_update() {
|
bios_update() {
|
||||||
# update the bios
|
# update the bios
|
||||||
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
|
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "##### erasing BIOS #####"
|
echo "##### erasing BIOS #####"
|
||||||
usleep 1000000
|
usleep 1000000
|
||||||
@ -687,7 +685,6 @@ bios_update() {
|
|||||||
|
|
||||||
echo "##### Please control the output and press any key to continue #####"
|
echo "##### Please control the output and press any key to continue #####"
|
||||||
read -sn1
|
read -sn1
|
||||||
|
|
||||||
else
|
else
|
||||||
msg_oem_only
|
msg_oem_only
|
||||||
fi
|
fi
|
||||||
@ -697,7 +694,6 @@ bios_update() {
|
|||||||
bios_erase() {
|
bios_erase() {
|
||||||
# erase the bios
|
# erase the bios
|
||||||
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
|
if [ "$BIOS_UPDATE" = "yes" -a -f "$BIOS_FILE" ]; then
|
||||||
|
|
||||||
clear
|
clear
|
||||||
echo "##### erasing BIOS #####"
|
echo "##### erasing BIOS #####"
|
||||||
usleep 1000000
|
usleep 1000000
|
||||||
@ -705,7 +701,6 @@ bios_erase() {
|
|||||||
|
|
||||||
echo "##### Please control the output and press any key to continue #####"
|
echo "##### Please control the output and press any key to continue #####"
|
||||||
read -sn1
|
read -sn1
|
||||||
|
|
||||||
else
|
else
|
||||||
msg_oem_only
|
msg_oem_only
|
||||||
fi
|
fi
|
||||||
@ -734,25 +729,25 @@ do_poweroff() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# setup needed variables
|
# setup needed variables
|
||||||
BETA="yes"
|
BETA="yes"
|
||||||
INSTALLER_VERSION="0.2.6"
|
INSTALLER_VERSION="0.2.6"
|
||||||
OS_VERSION=$(lsb_release)
|
OS_VERSION=$(lsb_release)
|
||||||
BACKTITLE="OpenELEC Installer $INSTALLER_VERSION - $OS_VERSION"
|
BACKTITLE="OpenELEC Installer $INSTALLER_VERSION - $OS_VERSION"
|
||||||
|
|
||||||
TMPDIR="/tmp/installer"
|
TMPDIR="/tmp/installer"
|
||||||
LOGFILE="$TMPDIR/install.log"
|
LOGFILE="$TMPDIR/install.log"
|
||||||
|
|
||||||
# prepare temporary directory
|
# prepare temporary directory
|
||||||
rm -rf $TMPDIR
|
rm -rf $TMPDIR
|
||||||
mkdir -p $TMPDIR
|
mkdir -p $TMPDIR
|
||||||
|
|
||||||
# main
|
# main
|
||||||
[ "$BETA" = "yes" ] && msg_warning_beta
|
[ "$BETA" = "yes" ] && msg_warning_beta
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
clear
|
clear
|
||||||
menu_main
|
menu_main
|
||||||
done
|
done
|
||||||
|
|
||||||
# exit cleanly
|
# exit cleanly
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user