From 5725235fd176ed0550019529960a256a76b03a6f Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Sun, 16 Sep 2007 14:06:42 +0200 Subject: [PATCH] lsb-functions: removed get_bootparam() --- etc/grml/lsb-functions | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index b9be507..a4a48be 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -368,43 +368,6 @@ ewend() { return $retval } -# bool get_bootparam(param) -# -# return 0 if gentoo=param was passed to the kernel -# -# EXAMPLE: if get_bootparam "nodevfs" ; then .... -# -get_bootparam() { - local x copt params retval=1 - - [ ! -r "/proc/cmdline" ] && return 1 - - for copt in $(< /proc/cmdline) - do - if [ "${copt%=*}" = "gentoo" ] - then - params="$(gawk -v PARAMS="${copt##*=}" ' - BEGIN { - split(PARAMS, nodes, ",") - for (x in nodes) - print nodes[x] - }')" - - # Parse gentoo option - for x in ${params} - do - if [ "${x}" = "$1" ] - then -# printf "YES\n" - retval=0 - fi - done - fi - done - - return ${retval} -} - # char *add_suffix(char * configfile) # # Returns a config file name with the softlevel suffix -- 2.1.4