Browse files

Remove old (and unused) srarp stuff

  • Loading branch information...
1 parent fdb1931 commit 85c0135bf93c0baf558b41b848cb9766ee18390b @nwgh nwgh committed Jun 5, 2013
Showing with 0 additions and 41 deletions.
  1. +0 −3 osx/arp.txt
  2. +0 −23 osx/org.mozilla.srarp.plist
  3. +0 −15 windows/srarp.py
View
3 osx/arp.txt
@@ -1,3 +0,0 @@
-172.17.0.1 2C:76:8A:D0:CE:89 ifscope en0
-172.18.0.1 2C:76:8A:D0:CA:D9 ifscope en0
-172.19.0.1 2C:76:8A:D0:CE:B9 ifscope en0
View
23 osx/org.mozilla.srarp.plist
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>Label</key>
- <string>org.mozilla.srarp</string>
- <key>ProgramArguments</key>
- <array>
- <string>/bin/sh</string>
- <string>-c</string>
- <string>/usr/sbin/arp -f /Users/hurley/srhome/stoneridge/osx/arp.txt; while /usr/bin/true; do sleep 30; done</string>
- </array>
- <key>KeepAlive</key>
- <true/>
- <key>WorkingDirectory</key>
- <string>/Users/hurley/srhome/stoneridge</string>
- <key>EnvironmentVariables</key>
- <dict>
- <key>PATH</key>
- <string>/usr/local/share/python:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin</string>
- </dict>
-</dict>
-</plist>
View
15 windows/srarp.py
@@ -1,15 +0,0 @@
-#!/usr/bin/env python
-
-import subprocess
-
-ip_mappings = {
- '172.17.0.1': '2C-76-8A-D0-CE-89', # Broadband
- '172.18.0.1': '2C-76-8A-D0-CA-D9', # UMTS
- '172.19.0.1': '2C-76-8A-D0-CE-B9', # GSM
-}
-
-for ip, mac in ip_mappings.items():
- p = subprocess.Popen(['arp', '-s', ip, mac, '172.16.1.2'],
- stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
- universal_newlines=True)
- p.communicate()

0 comments on commit 85c0135

Please sign in to comment.