X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=35bffaa80915702f54f435c1d31f4cbe17d056c5;hp=19fdbf6400f889e242a0822721e2940d525197fd;hb=bc6656c8a62d5b89aad347ebed4c81cc14e8cbdd;hpb=73ba2ea4706132edb816e3c1b15f5b83ffeee38d diff --git a/autoconfig.functions b/autoconfig.functions index 19fdbf6..35bffaa 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -34,10 +34,10 @@ iszsh && setopt no_nomatch # || echo "Warning: not running under zsh!" # {{{ Read in boot parameters if [ -z "$CMDLINE" ]; then - # if CMDLINE was set from the outside, we're debugging. Otherwise, take - # CMDLINE from Kernel and config files + # if CMDLINE was set from the outside, we're debugging. + # Otherwise, take CMDLINE from Kernel and config files. CMDLINE="$(cat /proc/cmdline)" - [ -d /cdrom/bootparams/ ] && CMDLINE="$CMDLINE $(cat /cdrom/bootparams/* | tr '\n' ' ')" + [ -d /cdrom/bootparams/ ] && CMDLINE="$CMDLINE $(cat /cdrom/bootparams/* | tr '\n' ' ')" [ -d /live/image/bootparams/ ] && CMDLINE="$CMDLINE $(cat /live/image/bootparams/* | tr '\n' ' ')" fi # }}} @@ -1590,19 +1590,6 @@ fi # checkbootparam home } # }}} -# {{{ Check for scripts on CD-ROM -# this is also executed when the scripts option is called. Is this a bug -# or intended? -config_cdrom_scripts(){ -if checkbootparam "script"; then - for script in "${LIVECD_PATH}"/scripts/* ; do - einfo " grml script found on CD, executing ${WHITE}${script}${NORMAL}." - . $script - done -fi -} -# }}} - # {{{ Sound config_mixer(){ if ! [ -x /usr/bin/aumix ] ; then @@ -1974,7 +1961,7 @@ if [ -n "$DCSDIR" ]; then else einfo "Debs, config, scripts will be read from the CD image directly." ; eend 0 fi -} +} config_partconf() { @@ -2045,7 +2032,7 @@ if checkbootparam config ; then if [ -n "$CONFIG" ]; then if [ -d "${DCSDIR}/${CONFIG}" ] ; then einfo "Taking configuration from directory ${DCSDIR}/${CONFIG}" - + cp -a ${DCSDIR}/${CONFIG}/* / elif [ -f "${DCSDIR}/${CONFIG}" ]; then einfo "Extracting configuration from file ${DCSDIR}/${CONFIG}"