post_install_sid.sh: correct the sed command for grub_timeout.

This commit is contained in:
gardouille 2015-11-11 21:39:25 +01:00
parent b4147eccbe
commit 5017929fa4

View File

@ -944,7 +944,7 @@ EOF
###########################################################
## System tools for shell
# Liste: backuppc - bsdmainutils - colordiff - cpio - ethtool - exuberant-ctags - iperf - genisoimage - knockd - lzip - moreutils - multitail - mr - ntfs-3g - openvpn - pmount - rsyslog - screen - sudo - tmux - unrar - unzip - urlview - vim-nox - vim-doc - vim-scripts - vlock - wakeonlan - zsh - zip
## Remove: bluetooth bluez
## Remove: bluetooth bluez vim-tiny
###########################################################
###### Pré-configuration
# Chargement d'un fichier preseed
@ -977,7 +977,7 @@ rm -f ~/.bash* ~/.profile
chsh -s /bin/zsh "${new_username}"
# Pour les nouveaux utilisateurs
sed -i "s;/bin/bash;/bin/zsh;" /etc/adduser.conf
mkdir /home/"${new_username}"/.zsh
mkdir -p /home/"${new_username}"/.zsh
chown "${new_username}":"${new_username}" /home/"${new_username}"/.zsh
## Disable Openvpn to automatically start
@ -993,7 +993,7 @@ cp ${script_path}/modprobe.d/blacklist-dma.conf /etc/modprobe.d/
#### Grub
# Modify the default grub timeout
if [ ! "$(grep "GRUB_TIMEOUT=${grub_timeout}" /etc/default/grub)" ]; then
sed -i "s/^GRUB_TIMEOUT.*/GRUB_TIMEOUT=${grub_timeout}" /etc/default/grub
sed -i "s/^GRUB_TIMEOUT.*/GRUB_TIMEOUT=${grub_timeout}/" /etc/default/grub
update-grub
fi