summaryrefslogtreecommitdiff
path: root/iso/overlay/etc/archiso/getshell
diff options
context:
space:
mode:
Diffstat (limited to 'iso/overlay/etc/archiso/getshell')
-rw-r--r--iso/overlay/etc/archiso/getshell9
1 files changed, 9 insertions, 0 deletions
diff --git a/iso/overlay/etc/archiso/getshell b/iso/overlay/etc/archiso/getshell
new file mode 100644
index 0000000..a6f8775
--- /dev/null
+++ b/iso/overlay/etc/archiso/getshell
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+. /etc/archiso/functions
+
+shell="$(cmdline_param shell)"
+[ -n "${shell}" ] && shell="/bin/bash"
+[ ! -e "${shell}" ] && shell="/bin/sh"
+
+exec ${shell}