X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=317323c9c4f711051751d17cb660c1171223b03a;hp=f63815a988b6b4dfea9e5614614719c1a2e17335;hb=f2e718518cd811284a9b14a67fe3978deaa5a378;hpb=9c5890ba9edbbdd0c6229ab2a2d68e3dbf32bc64 diff --git a/autoconfig.functions b/autoconfig.functions index f63815a..317323c 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -996,12 +996,12 @@ fi config_fstab(){ NOSWAP="yes" # we do not use swap by default! -if checkbootparam "swap" -o checkbootparam "anyswap" ; then +if checkbootparam "swap" || checkbootparam "anyswap" ; then NOSWAP='' checkbootparam "anyswap" && export ANYSWAP='yes' || export ANYSWAP="" fi -if checkbootparam "nofstab" -o checkbootparam "forensic" ; then +if checkbootparam "nofstab" || checkbootparam "forensic" ; then ewarn "Skipping /etc/fstab creation as requested on boot commandline." ; eend 0 else einfo "Scanning for harddisk partitions and creating /etc/fstab. (Disable this via boot option: nofstab)" @@ -1758,7 +1758,7 @@ fi } config_automount(){ -if checkbootparam noautoconfig -o checkbootparam forensic ; then +if checkbootparam noautoconfig || checkbootparam forensic ; then ewarn "Skipping running automount of device(s) labeled GRMLCFG as requested." ; eend 0 else if [ -z "$INSTALLED" ] ; then @@ -2039,8 +2039,8 @@ fi config_swraid(){ if [ -z "$INSTALLED" ] ; then # notice: checkbootparam "forensic" is just for users who don't know how to really use the bootoption - if checkbootparam 'noraid' -o checkbootparam 'noswraid' -o \ - checkbootparam 'forensic' -o checkbootparam 'raid=noautodetect' ; then + if checkbootparam 'noraid' || checkbootparam 'noswraid' -o \ + checkbootparam 'forensic' || checkbootparam 'raid=noautodetect' ; then ewarn "Skipping SW-RAID code as requested on boot commandline." ; eend 0 else if ! [ -x /sbin/mdadm ] ; then @@ -2180,7 +2180,7 @@ fi # {{{ check for broken ipw3945 driver which causes problems (especially on hd install) config_ipw3945() { if grep -q ipw3945 /proc/modules ; then - if ! iwconfig 2>/dev/null| grep -q 'IEEE 802' ; then + if ! iwconfig 2>/dev/null| grep -qe 'IEEE 802' -qe 'unassociated' ; then ewarn "Broken ipw3945 network interface found, reloading module." rmmod ipw3945 modprobe ipw3945