X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=d16699899201b50bbe7d80ddf56034f4a7ef6380;hp=de8341d772f583c51b7c6e35cd023cee1e063c80;hb=f7359bd0bfd5b036537ee0941714a024d4291cc3;hpb=cd25e7864a1a21783dce42ab226b643cb2395a86 diff --git a/autoconfig.functions b/autoconfig.functions index de8341d..d166998 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -399,6 +399,23 @@ config_userfstab(){ } # }}} +# {{{ mount configfs +config_configfs() { + einfo "Mounting configfs" + CONFIGFS_DIR=/sys/kernel/config/ + modprobe configfs 2>/dev/null 1>&2 + if ! [ -d "$CONFIGFS_DIR" ] ; then + eindent + einfo "$CONFIGFS_DIR does not exist, can't mount directory" + eend 1 + eoutdent + else + mount -t configfs configfs "$CONFIGFS_DIR" 2>/dev/null 1>&2 + eend $? + fi +} +# }}} + # {{{ Set clock (Local time is more often used than GMT, so it is default) config_time(){ # don't touch the files if running from harddisk: @@ -1153,7 +1170,7 @@ config_mixer () { MICVOL=0 fi - for CONTROL in Master PCM ; do + for CONTROL in Master PCM Front ; do if amixer -q | grep -q "Simple mixer control '$CONTROL'" ; then amixer -q set "${CONTROL}" unmute 1>/dev/null 2>&1 amixer -q set "${CONTROL}" "${VOL}"%