X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Flsb-functions;h=a4a48be255b2b4a443f09ad8a4a916f7c45f1c39;hb=5725235fd176ed0550019529960a256a76b03a6f;hp=b9be50791c2954c7e7677a92a8e7a0d74000aa3e;hpb=cd1c920eff9eef7e56ea4928cc69195e01fc53b3;p=grml-etc-core.git 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