mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 14:16:40 +00:00
installer: ask for/and enabling ssh per default
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
ea194c1496
commit
db31802c2a
@ -189,6 +189,12 @@ do_install_quick() {
|
|||||||
INSTALL_DEVICE=$(cat "$TMPDIR/device_for_install")
|
INSTALL_DEVICE=$(cat "$TMPDIR/device_for_install")
|
||||||
|
|
||||||
prompt_gpt
|
prompt_gpt
|
||||||
|
prompt_ssh
|
||||||
|
|
||||||
|
EXTLINUX_SSH=""
|
||||||
|
if [ "$SSH" = "1" ]; then
|
||||||
|
EXTLINUX_SSH="ssh"
|
||||||
|
fi
|
||||||
|
|
||||||
# remove all partitions
|
# remove all partitions
|
||||||
msg_progress_install "1" "get all partitions $INSTALL_DEVICE"
|
msg_progress_install "1" "get all partitions $INSTALL_DEVICE"
|
||||||
@ -267,7 +273,7 @@ do_install_quick() {
|
|||||||
echo " " >> $TMPDIR/part1/extlinux.conf
|
echo " " >> $TMPDIR/part1/extlinux.conf
|
||||||
echo "LABEL linux" >> $TMPDIR/part1/extlinux.conf
|
echo "LABEL linux" >> $TMPDIR/part1/extlinux.conf
|
||||||
echo " KERNEL /KERNEL" >> $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
|
sync
|
||||||
|
|
||||||
# umount system partition, remove mountpoint
|
# umount system partition, remove mountpoint
|
||||||
@ -367,6 +373,21 @@ prompt_gpt() {
|
|||||||
fi
|
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() {
|
menu_main() {
|
||||||
# show the mainmenu
|
# show the mainmenu
|
||||||
MSG_TITLE="\Z4[ MAIN MENU ]\Zn"
|
MSG_TITLE="\Z4[ MAIN MENU ]\Zn"
|
||||||
@ -532,7 +553,7 @@ do_poweroff() {
|
|||||||
|
|
||||||
# setup needed variables
|
# setup needed variables
|
||||||
BETA="yes"
|
BETA="yes"
|
||||||
INSTALLER_VERSION="0.2.5"
|
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"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user