If we ever need to get more than one kernel command line argument, this
function will pay for itself. It relies on a feature of the way bash
handles string comparisons in [[ ]] statements -- the RHS is matched
according to globbing rules, and is not a straight string match.
bash < /dev/console
}
+getarg() {
+ for o in $(< /proc/cmdline); do
+ [[ $o == $1 ]] && { echo $o; break; }
+ done
+}
+
echo "Starting initrd..."
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
export TERM=linux