Fix regular expressions to work with Jessie grub

This commit is contained in:
Jan Dittberner 2016-03-02 20:56:02 +01:00 committed by Holger Levsen
parent cc5dbbe97b
commit 2c39e8f284
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ echo "@reboot root /root/cronscript; reboot" >>/target/etc/crontab
mount /dev/discs/disc0/part1 /hd-media -o remount,rw
sed -i "s/^set default=.*$/set default=\"3\"/" /hd-media/boot/grub/grub.cfg
sed -i "s/^\([[:space:]]*\)set default=\"[[:digit:]]*\"$/\1set default=\"3\"/" /hd-media/boot/grub/grub.cfg
if [ -d /target/etc/gdm3 ] ; then
# Enable automatic login (chroot because of bug in busybox sed)