Tinkerboard: fix fwupdate mode boot switching

This commit is contained in:
Calin Crisan 2019-01-21 23:10:18 +02:00
parent 9fbc4064f2
commit f58ef33745
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
sed -i 's/^initrd.*//g' /boot/extlinux/extlinux.conf
sed 's/\([ ]*\)\(initrd.*\)/\1#\2/g' /boot/extlinux/extlinux.conf

View File

@ -1,4 +1,5 @@
#!/bin/bash
cat /boot/extlinux/extlinux.conf | grep -v 'initrd' > /boot/extlinux/extlinux.conf
echo " initrd /initrd.gz" >> /boot/extlinux/extlinux.conf