From 8dea2b65fc1b027f27b2855e10c03ce5699ea9fe Mon Sep 17 00:00:00 2001 From: Simo Leone Date: Sat, 6 Oct 2007 21:13:17 -0500 Subject: Fixed cmdline_param(), used in rc.conf Turns out /proc gets mounted after rc.conf is sourced for the first time, so /proc/cmdline isn't such a great place to be getting parameters from in rc.conf. Use CMDLINE env variable instead, which is set to mostly the same thing (well the part we care about, at the least). Also cmdline_param wasn't breaking out of the loop properly. Signed-off-by: Simo Leone --- default-config/etc/archiso/functions | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/default-config/etc/archiso/functions b/default-config/etc/archiso/functions index d668b4c..fdd48f4 100644 --- a/default-config/etc/archiso/functions +++ b/default-config/etc/archiso/functions @@ -2,10 +2,9 @@ cmdline_param () { - read cmdline < /proc/cmdline - for param in ${cmdline}; do + for param in ${CMDLINE}; do case "${param}" in - $1=*) echo "${param##*=}"; break ;; + $1=*) echo "${param##*=}"; return ;; *) continue ;; esac done -- cgit v1.2.3-70-g09d2