summaryrefslogtreecommitdiff
path: root/patch/mem.patch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'patch/mem.patch.sh')
-rw-r--r--patch/mem.patch.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/patch/mem.patch.sh b/patch/mem.patch.sh
new file mode 100644
index 0000000..d6352ee
--- /dev/null
+++ b/patch/mem.patch.sh
@@ -0,0 +1,8 @@
+#!/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 "Congratulations! your ram is now limitless!"
+ fi
+fi