#!/bin/sh CONFFILE=/boot/extlinux/extlinux.conf if ! test -e "$CONFFILE.bak" && test -e "$CONFFILE" && ! test -d "$CONFFILE"; then if sudo sed -Ei.bak '/\bappend\s/s/\s*\bmem=[0-9]+[GMk]\s*\b/ /' "$CONFFILE"; then echo "Patch has been applied successfully! Please restart the device to activate the changes." fi fi