diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-08-30 05:32:35 +0000 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-08-30 05:32:35 +0000 |
commit | 676782bc3af8d266b67bbc35b7d791cd8c703aee (patch) | |
tree | f8f3e15d5455a7af3d27be7f0a4cd60dc6943477 /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/getshell | 8 |
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}
|