added default values for the interface devices for usb armory scripts

This commit is contained in:
Cyryl Plotnicki-Chudyk 2015-04-02 20:49:05 +02:00
parent e86ada4297
commit bdce34a1b1
2 changed files with 14 additions and 4 deletions

View File

@ -1,8 +1,13 @@
#!/bin/bash
set -e
set -v
USB_INTERFACE=enp0s20u3
INTERNET_INTERFACE=wlp3s0
if [[ -z "$USB_INTERFACE" ]]; then
USB_INTERFACE=usb0
fi
if [[ -z "$INTERNET_INTERFACE" ]]; then
INTERNET_INTERFACE=wlan0
fi
echo 0 | sudo tee /proc/sys/net/ipv4/ip_forward

View File

@ -1,8 +1,13 @@
#!/bin/bash
set -e
set -v
USB_INTERFACE=enp0s20u3
INTERNET_INTERFACE=wlp3s0
if [[ -z "$USB_INTERFACE" ]]; then
USB_INTERFACE=usb0
fi
if [[ -z "$INTERNET_INTERFACE" ]]; then
INTERNET_INTERFACE=wlan0
fi
sudo /sbin/ip link set $USB_INTERFACE up