summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'defaults/resume-boot.sh')
-rw-r--r--defaults/resume-boot.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/defaults/resume-boot.sh b/defaults/resume-boot.sh
new file mode 100644
index 0000000..cb29831
--- /dev/null
+++ b/defaults/resume-boot.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+. /etc/initrd.defaults
+
+if [ -s "${GK_SHELL_LOCKFILE}" ]
+then
+ kill -9 "$(cat "${GK_SHELL_LOCKFILE}")"
+fi
+
+if [ -f "${GK_SSHD_LOCKFILE}" ]
+then
+ rm "${GK_SSHD_LOCKFILE}"
+fi
+
+exit 0