diff --git a/packages/tools/installer/scripts/installer b/packages/tools/installer/scripts/installer index 8540fd7835..5df995245a 100755 --- a/packages/tools/installer/scripts/installer +++ b/packages/tools/installer/scripts/installer @@ -189,6 +189,12 @@ do_install_quick() { INSTALL_DEVICE=$(cat "$TMPDIR/device_for_install") prompt_gpt + prompt_ssh + + EXTLINUX_SSH="" + if [ "$SSH" = "1" ]; then + EXTLINUX_SSH="ssh" + fi # remove all partitions msg_progress_install "1" "get all partitions $INSTALL_DEVICE" @@ -267,7 +273,7 @@ do_install_quick() { echo " " >> $TMPDIR/part1/extlinux.conf echo "LABEL linux" >> $TMPDIR/part1/extlinux.conf echo " KERNEL /KERNEL" >> $TMPDIR/part1/extlinux.conf - echo " APPEND boot=LABEL=$DISKLABEL_SYSTEM disk=LABEL=$DISKLABEL_STORAGE $EXTLINUX_PARAMETERS quiet" >> $TMPDIR/part1/extlinux.conf + echo " APPEND boot=LABEL=$DISKLABEL_SYSTEM disk=LABEL=$DISKLABEL_STORAGE $EXTLINUX_PARAMETERS $EXTLINUX_SSH quiet" >> $TMPDIR/part1/extlinux.conf sync # umount system partition, remove mountpoint @@ -367,6 +373,21 @@ prompt_gpt() { fi } +prompt_ssh() { + # Prompt for SSH enabling + # usage: prompt_ssh + # uses: + # provides: SSH + MSG_TITLE="\Z1[ Enable SSH Server on start ]\Zn" + MSG_DETAIL="Enable SSH server per default.\n...todo...." + DIALOG_OPTIONS="--defaultno" + if dialog --colors --backtitle "$BACKTITLE" --title "$MSG_TITLE" $DIALOG_OPTIONS --yesno "$MSG_DETAIL" 0 0; then + SSH="1" + else + SSH="0" + fi +} + menu_main() { # show the mainmenu MSG_TITLE="\Z4[ MAIN MENU ]\Zn" @@ -532,7 +553,7 @@ do_poweroff() { # setup needed variables BETA="yes" - INSTALLER_VERSION="0.2.5" + INSTALLER_VERSION="0.2.6" OS_VERSION=$(lsb_release) BACKTITLE="OpenELEC Installer $INSTALLER_VERSION - $OS_VERSION"