Skip to content

Commit

Permalink
dumby
Browse files Browse the repository at this point in the history
  • Loading branch information
Txus committed Oct 26, 2009
1 parent f3f02b9 commit ca25494
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions init.rb
Expand Up @@ -17,15 +17,12 @@
when '-b' when '-b'
bssid = ARGV[num+1] bssid = ARGV[num+1]
raise "This BSSID looks invalid." unless bssid =~ /^([0-9a-fA-F]{2}\:){5}[0-9a-fA-F]{2}$/ raise "This BSSID looks invalid." unless bssid =~ /^([0-9a-fA-F]{2}\:){5}[0-9a-fA-F]{2}$/
exit(0)
when '-e' when '-e'
essid = ARGV[num+1] essid = ARGV[num+1]
raise "This ESSID doesn't look like a WLAN_XX kind." unless essid =~ /^WLAN_[0-9a-fA-F]{2}$/ raise "This ESSID doesn't look like a WLAN_XX kind." unless essid =~ /^WLAN_[0-9a-fA-F]{2}$/
exit(0)
when '-f' when '-f'
file = ARGV[num+1] file = ARGV[num+1]
raise "File doesn't exist." unless File.exists?(file) raise "File doesn't exist." unless File.exists?(file)
exit(0)
end end
end end


Expand Down

0 comments on commit ca25494

Please sign in to comment.