summaryrefslogtreecommitdiffstats
path: root/.bin/clear-efi-suspend
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-02-03 21:31:55 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-02-03 21:31:55 +0100
commit703ed1915c69911a95cab6e1fb6524629c976800 (patch)
tree1e4063eeace827aa557e910aa502ee173dd6e4ab /.bin/clear-efi-suspend
parentd64d4a6a3924e144fe49b3d956320b37786a738a (diff)
downloaddots-703ed1915c69911a95cab6e1fb6524629c976800.tar.gz
Thu Feb 3 09:31:55 PM CET 2022
Diffstat (limited to '.bin/clear-efi-suspend')
-rwxr-xr-x.bin/clear-efi-suspend10
1 files changed, 10 insertions, 0 deletions
diff --git a/.bin/clear-efi-suspend b/.bin/clear-efi-suspend
new file mode 100755
index 0000000..9086ef3
--- /dev/null
+++ b/.bin/clear-efi-suspend
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -xe
+
+mkdir -p /dev/pstore
+mount -t pstore pstore /dev/pstore
+ls /dev/pstore
+rm -f /dev/pstore/*
+
+rm /sys/firmware/efi/efivars/dump-type0-*
remember that computers suck.