mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
installer: cleanup+typo
This commit is contained in:
parent
6fadefe78a
commit
2aefcdac87
24
packages/tools/installer/scripts/installer
Executable file → Normal file
24
packages/tools/installer/scripts/installer
Executable file → Normal file
@ -137,7 +137,7 @@ 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 the Device to install MBR\n\n Please choose an item:"
|
MSG_MENU="\n Please select where to install MBR.\n\n Please select a device:"
|
||||||
MSG_CANCEL="Back"
|
MSG_CANCEL="Back"
|
||||||
|
|
||||||
create_device_list
|
create_device_list
|
||||||
@ -169,7 +169,7 @@ do_install_quick() {
|
|||||||
|
|
||||||
# show menu
|
# show menu
|
||||||
MSG_TITLE="\Z4[ QUICK INSTALL MENU ]\Zn"
|
MSG_TITLE="\Z4[ QUICK INSTALL MENU ]\Zn"
|
||||||
MSG_MENU="\n You can use the UP/DOWN arrow keys,\n the No. of the choice as a hot key,\n to choose an option.\n\n Please choose an item:"
|
MSG_MENU="\n You can use the UP/DOWN arrow keys,\n or the number of the choice as a hotkey,\n to choose an option.\n\n Please select a device:"
|
||||||
MSG_CANCEL="Back"
|
MSG_CANCEL="Back"
|
||||||
|
|
||||||
create_device_list
|
create_device_list
|
||||||
@ -195,7 +195,7 @@ do_install_quick() {
|
|||||||
msg_progress_install "7" "creating label on $INSTALL_DEVICE"
|
msg_progress_install "7" "creating label on $INSTALL_DEVICE"
|
||||||
parted -s $INSTALL_DEVICE mklabel msdos >> $LOGFILE 2>&1
|
parted -s $INSTALL_DEVICE mklabel msdos >> $LOGFILE 2>&1
|
||||||
|
|
||||||
msg_progress_install "9" "writing MBR on $INSTALL_DEVICE"
|
msg_progress_install "9" "writing Master Boot Record on $INSTALL_DEVICE"
|
||||||
cat /usr/share/syslinux/mbr.bin > $INSTALL_DEVICE
|
cat /usr/share/syslinux/mbr.bin > $INSTALL_DEVICE
|
||||||
|
|
||||||
msg_progress_install "10" "creating partition on $INSTALL_DEVICE"
|
msg_progress_install "10" "creating partition on $INSTALL_DEVICE"
|
||||||
@ -207,7 +207,7 @@ do_install_quick() {
|
|||||||
msg_progress_install "16" "setup bootflag on partition 1 of $INSTALL_DEVICE"
|
msg_progress_install "16" "setup bootflag on partition 1 of $INSTALL_DEVICE"
|
||||||
parted -s $INSTALL_DEVICE set 1 boot on >> $LOGFILE 2>&1
|
parted -s $INSTALL_DEVICE set 1 boot on >> $LOGFILE 2>&1
|
||||||
|
|
||||||
msg_progress_install "20" "tell kernel we have a new partitiontable on $INSTALL_DEVICE"
|
msg_progress_install "20" "tell the kernel we have a new partitiontable on $INSTALL_DEVICE"
|
||||||
partprobe $INSTALL_DEVICE >> $LOGFILE 2>&1
|
partprobe $INSTALL_DEVICE >> $LOGFILE 2>&1
|
||||||
|
|
||||||
# create filesystem
|
# create filesystem
|
||||||
@ -273,7 +273,7 @@ do_install_quick() {
|
|||||||
msg_not_implemented() {
|
msg_not_implemented() {
|
||||||
# show an dialog that this function is not yet implemented
|
# show an dialog that this function is not yet implemented
|
||||||
MSG_TITLE="\Z2[ WORK IN PROGRESS ]\Zn"
|
MSG_TITLE="\Z2[ WORK IN PROGRESS ]\Zn"
|
||||||
MSG_INFOBOX=" This function is not yet implemented \n stay tuned!!!"
|
MSG_INFOBOX=" This function is not implemented yet."
|
||||||
|
|
||||||
dialog --colors --backtitle "$BACKTITLE" --title "$MSG_TITLE" --msgbox "$MSG_INFOBOX" 7 70
|
dialog --colors --backtitle "$BACKTITLE" --title "$MSG_TITLE" --msgbox "$MSG_INFOBOX" 7 70
|
||||||
}
|
}
|
||||||
@ -281,7 +281,7 @@ msg_not_implemented() {
|
|||||||
msg_oem_only() {
|
msg_oem_only() {
|
||||||
# show an dialog that this function is only implemented on special builds
|
# show an dialog that this function is only implemented on special builds
|
||||||
MSG_TITLE="\Z2[ FOR OEM ONLY ]\Zn"
|
MSG_TITLE="\Z2[ FOR OEM ONLY ]\Zn"
|
||||||
MSG_INFOBOX=" OEM only feature, this function is not implemented in this build! \n if you have questions about this feature \n visit http://www.openelec.tv!!!"
|
MSG_INFOBOX=" OEM only feature, this function is not implemented in this build. \n if you have questions about this feature \n visit http://www.openelec.tv"
|
||||||
|
|
||||||
dialog --colors --backtitle "$BACKTITLE" --title "$MSG_TITLE" --msgbox "$MSG_INFOBOX" 7 70
|
dialog --colors --backtitle "$BACKTITLE" --title "$MSG_TITLE" --msgbox "$MSG_INFOBOX" 7 70
|
||||||
}
|
}
|
||||||
@ -289,15 +289,15 @@ msg_oem_only() {
|
|||||||
msg_warning_beta() {
|
msg_warning_beta() {
|
||||||
# show an warning dialog if we use beta software
|
# show an warning dialog if we use beta software
|
||||||
MSG_TITLE="\Z1[ BETA WARNING ]\Zn"
|
MSG_TITLE="\Z1[ BETA WARNING ]\Zn"
|
||||||
MSG_INFOBOX=" This installer is Beta \n use it on your own risk!!! \n Please make first an backup !"
|
MSG_INFOBOX=" This installer is for beta versions. \n This means this sofware have not been tested yet. \n Please make sure you have a backup of \n your files before going any further."
|
||||||
|
|
||||||
dialog --colors --backtitle "$BACKTITLE" --title "$MSG_TITLE" --msgbox "$MSG_INFOBOX" 7 70
|
dialog --colors --backtitle "$BACKTITLE" --title "$MSG_TITLE" --msgbox "$MSG_INFOBOX" 7 70
|
||||||
}
|
}
|
||||||
|
|
||||||
msg_no_device() {
|
msg_no_device() {
|
||||||
# show an warning dialog if we dont find not mounted devices for install and return to main menu
|
# show an warning dialog if we dont find not mounted devices for install and return to main menu
|
||||||
MSG_TITLE="\Z1[ INFORMATION ]\Zn"
|
MSG_TITLE="\Z1[ WARNING ]\Zn"
|
||||||
MSG_INFOBOX=" Not found any devices to install. \n be sure you have connected your device via USB or (e)SATA. \n Please try again !"
|
MSG_INFOBOX=" No devices were found. \n If you are trying to install on a \n brand new harddisk you must create atleast \n one partition. Otherwise it won't be found. \n If you dont know how, ask in the forum or on IRC."
|
||||||
|
|
||||||
dialog --colors --backtitle "$BACKTITLE" --title "$MSG_TITLE" --msgbox "$MSG_INFOBOX" 7 70
|
dialog --colors --backtitle "$BACKTITLE" --title "$MSG_TITLE" --msgbox "$MSG_INFOBOX" 7 70
|
||||||
|
|
||||||
@ -336,8 +336,8 @@ menu_main() {
|
|||||||
|
|
||||||
dialog --colors --backtitle "$BACKTITLE" --cancel-label "$MSG_CANCEL" \
|
dialog --colors --backtitle "$BACKTITLE" --cancel-label "$MSG_CANCEL" \
|
||||||
--title "$MSG_TITLE" --menu "$MSG_MENU" 20 70 5 \
|
--title "$MSG_TITLE" --menu "$MSG_MENU" 20 70 5 \
|
||||||
1 "Quick Install OpenELEC" \
|
1 "Quick Install of OpenELEC" \
|
||||||
2 "Custom Install OpenELEC" \
|
2 "Custom Install of OpenELEC" \
|
||||||
3 "Setup OpenELEC" \
|
3 "Setup OpenELEC" \
|
||||||
4 "BIOS update (only for OEM's)" \
|
4 "BIOS update (only for OEM's)" \
|
||||||
5 "Show logfile" 2> $TMPDIR/mainmenu
|
5 "Show logfile" 2> $TMPDIR/mainmenu
|
||||||
@ -371,7 +371,7 @@ menu_setup() {
|
|||||||
menu_bios() {
|
menu_bios() {
|
||||||
# show the biosmenu
|
# show the biosmenu
|
||||||
MSG_TITLE="\Z4[ BIOS MENU ]\Zn"
|
MSG_TITLE="\Z4[ BIOS MENU ]\Zn"
|
||||||
MSG_MENU="\n You can use the UP/DOWN arrow keys,\n the No. of the choice as a hot key,\n to choose an option.\n\n Please choose an item:"
|
MSG_MENU="\n You can use the UP/DOWN arrow keys,\n or the number of the choice as a hotkey,\n to choose an option.\n\n Please choose a device:"
|
||||||
MSG_CANCEL="Back"
|
MSG_CANCEL="Back"
|
||||||
|
|
||||||
dialog --colors --backtitle "$BACKTITLE" --cancel-label "$MSG_CANCEL" \
|
dialog --colors --backtitle "$BACKTITLE" --cancel-label "$MSG_CANCEL" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user