Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/default-config/etc/archiso/getshell
diff options
context:
space:
mode:
Diffstat (limited to 'default-config/etc/archiso/getshell')
-rw-r--r--default-config/etc/archiso/getshell8
1 files changed, 8 insertions, 0 deletions
diff --git a/default-config/etc/archiso/getshell b/default-config/etc/archiso/getshell
new file mode 100644
index 0000000..c61c56c
--- /dev/null
+++ b/default-config/etc/archiso/getshell
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+. /etc/archiso/functions
+shell="$(cmdline_param shell)"
+[ -n "${shell}" ] && shell="/bin/bash"
+[ ! -e "${shell}" ] && shell="/bin/sh"
+
+exec ${shell}