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:
authorAaron Griffin <aaron@archlinux.org>2006-08-30 05:32:35 +0000
committerAaron Griffin <aaron@archlinux.org>2006-08-30 05:32:35 +0000
commit676782bc3af8d266b67bbc35b7d791cd8c703aee (patch)
treef8f3e15d5455a7af3d27be7f0a4cd60dc6943477 /default-config/etc/archiso/getshell
Initial import
git-svn-id: http://phraktured.net/archiso@1 00a9fe69-e71b-0410-bb23-df0e5024db41
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}