MoeClub 4 лет назад
Родитель
Сommit
c5ef6d3f55
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      InstallNET.sh

+ 9 - 1
InstallNET.sh

@@ -37,6 +37,7 @@ export GRUBFILE=''
 export GRUBVER=''
 export VER=''
 export setCMD=''
+export setConsole=''
 
 while [[ $# -ge 1 ]]; do
   case $1 in
@@ -124,6 +125,11 @@ while [[ $# -ge 1 ]]; do
       setCMD="$1"
       shift
       ;;
+    -console)
+      shift
+      setConsole="$1"
+      shift
+      ;;
     -firmware)
       shift
       IncFirmware="1"
@@ -547,10 +553,12 @@ if [[ "$loaderMode" == "0" ]]; then
   lowMem || Add_OPTION="$Add_OPTION lowmem=+0"
 
   if [[ "$linux_relese" == 'debian' ]] || [[ "$linux_relese" == 'ubuntu' ]]; then
-    BOOT_OPTION="auto=true $Add_OPTION hostname=$linux_relese domain= -- quiet"
+    BOOT_OPTION="auto=true $Add_OPTION hostname=$linux_relese domain= quiet"
   elif [[ "$linux_relese" == 'centos' ]]; then
     BOOT_OPTION="ks=file://ks.cfg $Add_OPTION ksdevice=$interfaceSelect"
   fi
+  
+  [ -n "$setConsole" ] && BOOT_OPTION="$BOOT_OPTION --- console=$setConsole"
 
   [[ "$Type" == 'InBoot' ]] && {
     sed -i "/$LinuxKernel.*\//c\\\t$LinuxKernel\\t\/boot\/vmlinuz $BOOT_OPTION" /tmp/grub.new;