installer: cleanup+typo

This commit is contained in:
newphreak 2011-03-18 20:24:51 -07:00
parent 6fadefe78a
commit 2aefcdac87

24
packages/tools/installer/scripts/installer Executable file → Normal file
View File

@ -137,7 +137,7 @@ do_install_mbr() {
# show menu
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"
create_device_list
@ -169,7 +169,7 @@ do_install_quick() {
# show menu
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"
create_device_list
@ -195,7 +195,7 @@ do_install_quick() {
msg_progress_install "7" "creating label on $INSTALL_DEVICE"
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
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"
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
# create filesystem
@ -273,7 +273,7 @@ do_install_quick() {
msg_not_implemented() {
# show an dialog that this function is not yet implemented
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
}
@ -281,7 +281,7 @@ msg_not_implemented() {
msg_oem_only() {
# show an dialog that this function is only implemented on special builds
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
}
@ -289,15 +289,15 @@ msg_oem_only() {
msg_warning_beta() {
# show an warning dialog if we use beta software
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
}
msg_no_device() {
# show an warning dialog if we dont find not mounted devices for install and return to main menu
MSG_TITLE="\Z1[ INFORMATION ]\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_TITLE="\Z1[ WARNING ]\Zn"
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
@ -336,8 +336,8 @@ menu_main() {
dialog --colors --backtitle "$BACKTITLE" --cancel-label "$MSG_CANCEL" \
--title "$MSG_TITLE" --menu "$MSG_MENU" 20 70 5 \
1 "Quick Install OpenELEC" \
2 "Custom Install OpenELEC" \
1 "Quick Install of OpenELEC" \
2 "Custom Install of OpenELEC" \
3 "Setup OpenELEC" \
4 "BIOS update (only for OEM's)" \
5 "Show logfile" 2> $TMPDIR/mainmenu
@ -371,7 +371,7 @@ menu_setup() {
menu_bios() {
# show the biosmenu
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"
dialog --colors --backtitle "$BACKTITLE" --cancel-label "$MSG_CANCEL" \