X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=c75b2747184080b6109595c3de075c9614d9d9f2;hp=d91089d402d65c114618130d2618e12563243c8d;hb=547a62897d1f9e93ea1a344708f6f4c6e6f2f4c0;hpb=4d7505f033f8928dffa4aff60d9b4eb03484480a diff --git a/autoconfig.functions b/autoconfig.functions index d91089d..c75b274 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Klaus Knopper , (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Mon Feb 18 13:30:57 CET 2008 [mika] +# Latest change: Sat Mar 22 00:41:14 CET 2008 [mika] ################################################################################ # {{{ path, variables, signals, umask, zsh @@ -1906,6 +1906,18 @@ fi } # }}} +# {{{ mypath +config_mypath(){ +if checkbootparam "mypath" ; then + MY_PATH="$(getbootparam 'mypath' 2>>$DEBUG)" + einfo "Bootparameter mypath found, adding ${MY_PATH} to /etc/grml/my_path" + touch /etc/grml/my_path + chmod 644 /etc/grml/my_path + echo "$MY_PATH" >> /etc/grml/my_path ; eend $? +fi +} +# }}} + # {{{ distcc config_distcc(){ if checkbootparam "distcc" ; then