All pastes #639142 Raw Edit

phoemix

public text v1 · immutable
#639142 ·published 2007-07-30 11:20 UTC
rendered paste body
                for opt in $fstab_opts
                        do
                                # we care about noexec and ro, nothing else
                                if [ "$opt" = "noexec" -o "$opt" = "ro" ]
                                        then
                                                echo "$curr_opts" | egrep "$opt" >/dev/null 2>&1
                                                if [ $? -eq 0 ]
                                                        # no match; print warning
                                                        then :
                                                        else
                                                                printlog "\"$opt\" missing from \"$curr_opts\" ($dev @ `cat /proc/mounts | egrep "$dev" | awk '{print $2}'`)"
                                                                i=$i+1
                                                fi
                                        else :
                                fi
                        done