~ubuntu-branches/debian/sid/aircrack-ng/sid

« back to all changes in this revision

Viewing changes to debian/airodump-ng-oui/check-file-is-updated

  • Committer: Package Import Robot
  • Author(s): Carlos Alberto Lopez Perez
  • Date: 2012-06-18 12:13:13 UTC
  • Revision ID: package-import@ubuntu.com-20120618121313-0xo7s8ccxo83yudj
Tags: 1:1.1-3
Summarize the changes introduced on (1:1.1-2) and document how
to rebuild the package with OpenSSL on file README.Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/bash
 
2
if ! which curl &>/dev/null; then
 
3
        echo "Please install curl. I need it to download the file to test for"
 
4
        exit 1
 
5
fi
 
6
if ! ping -c1 standards.ieee.org &>/dev/null; then
 
7
        echo "ERROR: Can't reach standards.ieee.org. Check your internet connection"
 
8
        exit 1
 
9
fi
 
10
if diff -qu airodump-ng-oui.txt <(curl -s http://standards.ieee.org/develop/regauth/oui/oui.txt | grep "(hex)") &>/dev/null; then
 
11
        echo "OK: file is updated"
 
12
        exit 0
 
13
else
 
14
        echo "ERROR: file needs to be update"
 
15
        exit 1
 
16
fi