Fix regular expressions to work with Jessie grub
This commit is contained in:
parent
cc5dbbe97b
commit
2c39e8f284
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue