Ignore:
Timestamp:
Feb 10, 2016, 3:04:10 PM (4 years ago)
Author:
mabarracus
Message:

wip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-grub-custom/trunk/fuentes/debian/lliurex-grub-custom.postinst

    r548 r549  
    3434                echo " [ LLiureX Grub Custom ] : Setting GFXMODE"
    3535                sed -i "s%^#GRUB_GFXMODE=.*%GRUB_GFXMODE=1024x768%g"  ${LLIUREX_GRUB_DEFAULT}  || echo "Not find the line"
    36                 echo "GRUB_GFXMODE=1024x768" > ${GRUB_DEFCFG_FILE}
     36                echo "GRUB_GFXMODE=1024x768" >> ${GRUB_DEFCFG_FILE}
    3737                date +%F_%R > ${LLIUREX_GRUB_TOKENS_DIR}/${TOKEN_GFXMODE}
    3838        fi
     
    4343                echo " [ LLiureX Grub Custom ] : Setting HIDDENT_TIMEOUT"
    4444                sed -i "s%^GRUB_HIDDEN_TIMEOUT_QUIET=true%#GRUB_HIDDEN_TIMEOUT_QUIET=true%g"  ${LLIUREX_GRUB_DEFAULT} || echo "Not find the line"
    45                 echo "GRUB_HIDDEN_TIMEOUT_QUIET=true" > ${GRUB_DEFCFG_FILE}
     45                echo "GRUB_HIDDEN_TIMEOUT_QUIET=true" >> ${GRUB_DEFCFG_FILE}
    4646                date +%F_%R > ${LLIUREX_GRUB_TOKENS_DIR}/${TOKEN_GRUB_HIDDEN_TIMEOUT}
    4747        fi
     
    5252                echo " [ LLiureX Grub Custom ] : Setting HIDDENT_TIMEOUT"
    5353                sed -i "s%^GRUB_HIDDEN_TIMEOUT=.*%GRUB_HIDDEN_TIMEOUT=%g"  ${LLIUREX_GRUB_DEFAULT} || echo "Not find the line"
    54                 echo "GRUB_HIDDEN_TIMEOUT=" > ${GRUB_DEFCFG_FILE}
     54                echo "GRUB_HIDDEN_TIMEOUT=" >> ${GRUB_DEFCFG_FILE}
    5555                date +%F_%R > ${LLIUREX_GRUB_TOKENS_DIR}/${TOKEN_GRUB_HIDDEN_TIMEOUT_2}
    5656        fi
     
    6161                echo " [ LLiureX Grub Custom ] : Setting GRUB_BACKGROUND"
    6262                echo 'GRUB_BACKGROUND="/usr/share/lliurex-grub-custom/backgrounds/trusty.png"' >> ${LLIUREX_GRUB_DEFAULT}
    63                 echo "GRUB_BACKGROUND=\"/usr/share/lliurex-grub-custom/backgrounds/trusty.png\"" > ${GRUB_DEFCFG_FILE}
     63                echo "GRUB_BACKGROUND=\"/usr/share/lliurex-grub-custom/backgrounds/trusty.png\"" >> ${GRUB_DEFCFG_FILE}
    6464                date +%F_%R > ${LLIUREX_GRUB_TOKENS_DIR}/${TOKEN_GRUB_BACKGROUND}
    6565        fi
     
    7777                echo " [ LLiureX Grub Custom ] : Setting default Linux cmdline"
    7878                sed -i "s%^GRUB_CMDLINE_LINUX_DEFAULT=.*%GRUB_CMDLINE_LINUX_DEFAULT=\"net.ifnames=0 quiet splash rw\"%g" ${LLIUREX_GRUB_DEFAULT} || echo "Not find the line"
    79                 echo "GRUB_CMDLINE_LINUX_DEFAULT=\"net.ifnames=0 quiet splash rw\"" > ${GRUB_DEFCFG_FILE}
     79                echo "GRUB_CMDLINE_LINUX_DEFAULT=\"net.ifnames=0 quiet splash rw\"" >> ${GRUB_DEFCFG_FILE}
    8080                IFACES=`ls /sys/class/net|egrep -v '^lo$'`
    8181                I=0
Note: See TracChangeset for help on using the changeset viewer.