summaryrefslogtreecommitdiff
path: root/default-config/etc/archiso
diff options
context:
space:
mode:
Diffstat (limited to 'default-config/etc/archiso')
-rw-r--r--default-config/etc/archiso/functions2
-rw-r--r--default-config/etc/archiso/getshell1
2 files changed, 2 insertions, 1 deletions
diff --git a/default-config/etc/archiso/functions b/default-config/etc/archiso/functions
index bf224dc..2972013 100644
--- a/default-config/etc/archiso/functions
+++ b/default-config/etc/archiso/functions
@@ -6,6 +6,6 @@ cmdline_param ()
$1=*) echo "${param##*=}"; break ;;
*) continue ;;
esac
+ echo "${2}"
done < read /proc/cmdline
- echo "${2}"
}
diff --git a/default-config/etc/archiso/getshell b/default-config/etc/archiso/getshell
index c61c56c..41ec0c6 100644
--- a/default-config/etc/archiso/getshell
+++ b/default-config/etc/archiso/getshell
@@ -1,6 +1,7 @@
#!/bin/sh
. /etc/archiso/functions
+
shell="$(cmdline_param shell)"
[ -n "${shell}" ] && shell="/bin/bash"
[ ! -e "${shell}" ] && shell="/bin/sh"