~rudloff/aircrack-ng/trunk

« back to all changes in this revision

Viewing changes to scripts/airmon-zc

  • Committer: Zero_Chaos
  • Date: 2012-12-20 03:12:12 UTC
  • Revision ID: svn-v4:28c6078b-6c39-48e3-add9-af49d547ecab:trunk:2222
airmon-zc: properly test variables before using them

Show diffs side-by-side

added added

removed removed

Lines of Context:
271
271
        then
272
272
                true
273
273
        else
274
 
                DRIVER="$(lspci -d $DEVICEID -k | awk '/modules/ {print $3}')"
 
274
                if [ "${DEVICEID}" = "" ]
 
275
                then
 
276
                        DRIVER="$(lspci -d $DEVICEID -k | awk '/modules/ {print $3}')"
 
277
                fi
275
278
                if [ "$DRIVER" = "" ]
276
279
                then
277
280
                        DRIVER="??????"